/* === responsivity base === */
:root {
  --modal-width: min(90vw, 1400px);
  --modal-height: min(85vh, 900px);
  --font-base: clamp(14px, 2vw, 20px);
}

/* 1200px padding adjust */
@media (max-width: 1200px) {
  .gallery-content,
  .pfp-content,
  .about-content,
  .buy-content {
    padding: 15px !important;
  }
}

/* === CUSTOM FONTS === */
@font-face {
  font-family: 'PixelFont';
  src: url('IMAGES/ThatThatNewPixelVF.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  cursor: default;
  transition: filter 0.4s ease;
}

/* === PARALLAX BG === */
.parallax-bg {
  position: fixed;
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  background: url('IMAGES/bg-main.png') no-repeat center center;
  background-size: cover;
  transition: transform 0.1s ease-out;
  will-change: transform;
  z-index: -1;
}

/* === room elements === */
.room-element {
  position: absolute;
  display: block;
  transition: all 0.3s ease;
  filter: none;
  cursor: pointer;
}

.room-element img {
  width: 100%;
  height: auto;
  display: block;
}

/* Comp */
.computer {
  width: 28%;
  left: 6%;
  top: 35%;
}

/* heart */
.heart {
  width: 25%;
  left: 38%;
  top: 6%;
}

/* frame */
.frame {
  width: 25%;
  left: 67%;
  top: 10%;
}

/* new icons */
.icon-x {
  width: 4.84%;
  left: 10.51%;
  top: 16.25%;
}

.icon-dexs {
  width: 4.84%;
  left: 15.51%;
  top: 16.25%;
}

.icon-tg {
  width: 4.84%;
  left: 20.55%;
  top: 16.25%;
}

.icon-ca {
  width: 4.84%;
  left: 25.55%;
  top: 16.25%;
}

/* hero */
.hero {
  width: 20.15%;
  left: 58.28%;
  top: 47.91%;
}

/* === hover text === */
.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-family: 'PixelFont', 'Courier New', monospace;
  font-size: 32px;
  color: white;
  text-shadow: 
    0 0 10px #000,
    0 0 20px #000,
    0 0 30px #000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  animation: none;
  z-index: 1001;
  filter: none !important;
}

.hover-text.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  animation: textGlitch 0.5s infinite;
}

@keyframes textGlitch {
  0% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      2px 0 #ff5bb8, -2px 0 #7b3cff;
    transform: translate(-50%, -50%) scale(1.1) translateX(0);
  }
  25% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      -2px 0 #ff5bb8, 2px 0 #7b3cff;
    transform: translate(-50%, -50%) scale(1.1) translateX(2px);
  }
  50% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      2px 0 #ff5bb8, -2px 0 #7b3cff;
    transform: translate(-50%, -50%) scale(1.1) translateX(-2px);
  }
  75% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      -2px 0 #ff5bb8, 2px 0 #7b3cff;
    transform: translate(-50%, -50%) scale(1.1) translateX(1px);
  }
  100% { 
    text-shadow: 
      0 0 10px #000, 0 0 20px #000, 0 0 30px #000,
      2px 0 #ff5bb8, -2px 0 #7b3cff;
    transform: translate(-50%, -50%) scale(1.1) translateX(0);
  }
}

/* === blur overlay === */
.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 998;
  transform: none !important;
}

.blur-overlay.active {
  opacity: 1;
}

/* === hover effects === */
.room-element:hover {
  transform: scale(1.01);
  filter: drop-shadow(0 0 20px rgba(255, 91, 184, 0.8)) brightness(1.1);
  z-index: 999;
}

/* === MUSIC PLAYER === */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1002;
}

.play-pause-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ff5bb8;
  background: rgba(0, 0, 0, 0.7);
  color: #ff5bb8;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 91, 184, 0.5);
  padding: 0;
  margin: 0;
  line-height: 1;
}

.play-pause-btn:hover {
  background: rgba(255, 91, 184, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 91, 184, 0.8);
}

/* === PFP EDITOR MODAL === */
.pfp-modal {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1003;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  transform: none !important;
}

.pfp-modal.active {
  opacity: 1;
  pointer-events: all;
}

.pfp-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  max-width: 1000px;
  max-height: 90vh;
  background: rgba(0, 0, 0, 1);
  border: 2px solid #ff5bb8;
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 0 50px rgba(255, 91, 184, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.close-pfp {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 91, 184, 0.2);
  border: 2px solid #ff5bb8;
  color: #ff5bb8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1004;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.close-pfp:hover {
  background: rgba(255, 91, 184, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 91, 184, 0.6);
}

/* PFP Header */
.pfp-header {
  text-align: center;
  margin-bottom: -30px;
  border-bottom: 1px solid #ff5bb8;
  padding-bottom: -10px;
}

.pfp-header h2 {
  font-family: 'PixelFont', 'Courier New', monospace;
  color: #ff5bb8;
  font-size: 42px;
  text-shadow: 0 0 10px rgba(255, 91, 184, 0.5);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.pfp-header p {
  font-family: 'PixelFont', 'Courier New', monospace;
  color: #fff;
  font-size: 20px;
}

/* PFP Editor Container */
.pfp-editor-container {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

/* PFP Controls */
.pfp-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  max-height: 600px;
  overflow-y: auto;
  padding: 15px;
  background: rgba(255, 91, 184, 0.05);
  border-radius: 10px;
  border: 1px solid #ff5bb8;
}

.trait-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 200px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  border: 1px solid #7b3cff;
}

.trait-row span {
  flex: 1;
  text-align: center;
  font-family: 'PixelFont', 'Courier New', monospace;
  color: #fff;
  font-size: 16px;
  text-shadow: 0 0 5px rgba(255, 91, 184, 0.5);
}

.arrow {
  cursor: pointer;
  font-size: 12px;
  padding: 1px 5px;
  user-select: none;
  background: rgba(123, 60, 255, 0.3);
  border: 1px solid #7b3cff;
  border-radius: 5px;
  color: #fff;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.arrow:hover {
  background: rgba(123, 60, 255, 0.6);
  transform: scale(1.1);
}

/* PFP Canvas */
.pfp-canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#pfpCanvas {
  border: 2px solid #ff5bb8;
  background: #222;
  display: block;
  width: 500px;
  height: 500px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 91, 184, 0.3);
}

/* PFP Buttons */
.pfp-actions {
  display: flex;
  justify-content: center;
  gap: 0px;
  margin-top: 0px;
  margin-bottom: 40px;
}

#pfp-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.pfp-button {
  padding: 12px 50px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  min-width: 120px;
  font-weight: bold;
  font-family: 'PixelFont', 'Courier New', monospace;
  transition: all 0.3s ease;
  text-align: center;
}

#savePfpBtn {
  background: rgba(255, 91, 184, 0.8);
  color: white;
  border: 2px solid #ff5bb8;
}

#savePfpBtn:hover {
  background: #ff5bb8;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 91, 184, 0.4);
}

#randomPfpBtn {
  background: rgba(123, 60, 255, 0.8);
  color: white;
  border: 2px solid #7b3cff;
}

#randomPfpBtn:hover {
  background: #7b3cff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(123, 60, 255, 0.4);
}

.download-btn {
  padding: 15px 30px;
  background: rgba(255, 91, 184, 0.8);
  border: 2px solid #ff5bb8;
  color: white;
  font-family: 'PixelFont', 'Courier New', monospace;
  font-size: 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #ff5bb8;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 91, 184, 0.6);
}

/* PFP Controls Scrollbar */
.pfp-controls::-webkit-scrollbar {
  width: 6px;
}

.pfp-controls::-webkit-scrollbar-track {
  background: rgba(255, 91, 184, 0.1);
  border-radius: 3px;
}

.pfp-controls::-webkit-scrollbar-thumb {
  background: #ff5bb8;
  border-radius: 3px;
}

.pfp-controls::-webkit-scrollbar-thumb:hover {
  background: #ff3da5;
}

/* === gallery modal === */
.gallery-modal {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1003;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  transform: none !important;
}

.gallery-modal.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  max-width: 1400px;
  max-height: 90vh;
  background: rgba(0, 0, 0, 1);
  border: 2px solid #ff5bb8;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 50px rgba(255, 91, 184, 0.5);
  overflow: hidden;
}

.close-gallery {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 91, 184, 0.2);
  border: 2px solid #ff5bb8;
  color: #ff5bb8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1004;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.close-gallery:hover {
  background: rgba(255, 91, 184, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 91, 184, 0.6);
}

/* gallery header */
.gallery-header {
  margin-bottom: 30px;
  text-align: center;
}

.gallery-tabs {
  display: inline-flex;
  background: rgba(255, 91, 184, 0.1);
  border: 1px solid #ff5bb8;
  border-radius: 25px;
  padding: 5px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 25px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'PixelFont', 'Courier New', monospace;
  font-size: 16px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #ff5bb8;
  color: #000;
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 91, 184, 0.3);
}

/* category filters */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 8px 20px;
  background: rgba(123, 60, 255, 0.2);
  border: 1px solid #7b3cff;
  color: #fff;
  font-family: 'PixelFont', 'Courier New', monospace;
  font-size: 14px;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.category-btn.active {
  background: #7b3cff;
  color: #000;
}

.category-btn:hover:not(.active) {
  background: rgba(123, 60, 255, 0.4);
}

/* meme grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 10px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
  transform: scale(1.05);
  border-color: #ff5bb8;
  box-shadow: 0 0 20px rgba(255, 91, 184, 0.6);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === video item === */
.video-item video {
  transition: transform 0.3s ease;
}

.video-item:hover video {
  transform: scale(1.05);
}

/* muted loop */
.gallery-item video {
  pointer-events: none;
}

/* media viewer */
.media-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: pointer;
  transform: none !important;
}

.media-viewer.active {
  opacity: 1;
  pointer-events: all;
}

.close-viewer {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 91, 184, 0.2);
  border: 2px solid #ff5bb8;
  color: #ff5bb8;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 1006;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.close-viewer:hover {
  background: rgba(255, 91, 184, 0.4);
  transform: scale(1.1);
}

.viewer-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 85%;
  max-height: 80vh;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-content img,
.viewer-content video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(255, 91, 184, 0.5);
  object-fit: contain;
}

#viewerVideo {
  display: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* custom scrollbar */
.gallery-grid::-webkit-scrollbar {
  width: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(255, 91, 184, 0.1);
  border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: #ff5bb8;
  border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: #ff3da5;
}

/* === viewer nav === */
.viewer-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 1007;
}

.nav-arrow {
  background: rgba(255, 91, 184, 0.3);
  border: 2px solid #ff5bb8;
  color: #ff5bb8;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: all;
}

.nav-arrow:hover {
  background: rgba(255, 91, 184, 0.6);
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(1);
}

/* === ABOUT MODAL === */
.about-modal {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1003;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  transform: none !important;
}

.about-modal.active {
  opacity: 1;
  pointer-events: all;
}

.about-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%; 
  height: 85%;
  max-width: 1000px; 
  max-height: 90vh;
  background: rgba(0, 0, 0, 1);
  border: 2px solid #ff5bb8;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 50px rgba(255, 91, 184, 0.5);
  overflow-y: auto; 
  z-index: 1004; 
}

.close-about {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 91, 184, 0.2);
  border: 2px solid #ff5bb8;
  color: #ff5bb8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1005;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.close-about:hover {
  background: rgba(255, 91, 184, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 91, 184, 0.6);
}

/* Header */
.about-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #ff5bb8;
  padding-bottom: 20px;
}

.about-header h1 {
  font-family: 'PixelFont', 'Courier New', monospace;
  color: #ff5bb8;
  font-size: 42px;
  text-shadow: 0 0 10px rgba(255, 91, 184, 0.5);
  letter-spacing: 2px;
}

/* Body */
.about-body {
  color: white;
  font-family: 'PixelFont', 'Courier New', monospace;
  font-size: 24px;
  line-height: 1.6;
}

/* Image */
.about-image {
  text-align: center;
  margin-bottom: 80px;
}

.about-image img {
  max-width: 850px;
  max-height: 650px;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 2px solid #7b3cff;
  box-shadow: 0 0 20px rgba(123, 60, 255, 0.5);
  cursor: pointer;
}

/* section */
.about-section {
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255, 91, 184, 0.05);
  border-radius: 10px;
  border-left: 3px solid #ff5bb8;
}

.about-section h2 {
  font-family: 'PixelFont', 'Courier New', monospace;
  color: #ff5bb8;
  font-size: 28px;
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(255, 91, 184, 0.5);
}

.about-section p {
  margin-bottom: 15px;
  font-size: 20px;
}

.about-section strong {
  color: #ff5bb8;
  font-size: 24px;
}

.about-section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.about-section li {
  margin-bottom: 8px;
  position: relative;
  font-size: 24px;
}

.about-section li::before {
  content: "💜";
  margin-right: 10px;
}

/* button */
.about-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: left;
  margin-top: 40px;
}

.community-btn {
  padding: 12px 25px;
  background: rgba(123, 60, 255, 0.2);
  border: 2px solid #7b3cff;
  color: white;
  text-decoration: none;
  font-family: 'PixelFont', 'Courier New', monospace;
  font-size: 24px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 150px;
}

.community-btn:hover {
  background: #7b3cff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(123, 60, 255, 0.4);
}

/* Scrollbar */
.about-content::-webkit-scrollbar {
  width: 8px;
}

.about-content::-webkit-scrollbar-track {
  background: rgba(255, 91, 184, 0.1);
  border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb {
  background: #ff5bb8;
  border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb:hover {
  background: #ff3da5;
}

.buy-modal {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1003;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  transform: none !important;
}

.buy-modal.active {
  opacity: 1;
  pointer-events: all;
}

.buy-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  width: 400px;
  height: 668px;
  background: rgba(0, 0, 0, 1);
  border: 2px solid #ff5bb8;
  border-radius: 15px;
  box-shadow: 0 0 50px rgba(255, 91, 184, 0.5);
  overflow: hidden;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* buy modal close button */
.close-buy {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 91, 184, 0.2);
  border: 2px solid #ff5bb8;
  color: #ff5bb8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1005;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.close-buy:hover {
  background: rgba(255, 91, 184, 0.4);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 91, 184, 0.6);
}

.pfp-controls {
  max-height: 600px;
  min-width: 280px;
}

#pfp-buttons {
  position: fixed;
  bottom: 10px;
  left: 50%;
  padding: 16px 48px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 15px;
  z-index: 10000;
}

.pfp-button {
  padding: 12px 12px;
  background: rgba(255, 91, 184, 0.9);
  color: white;
  border: 2px solid #ff5bb8;
  border-radius: 25px;
  font-family: 'PixelFont', monospace;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap
}

/* COLORS */
#resetPfpBtn { background: #ff5bb8; border-color: #ff5bb8; }
#randomPfpBtn { background: #ff5bb8; border-color: #ff5bb8; }
#savePfpBtn { background: #ff5bb8; border-color: #ff5bb8; }

.pfp-button:hover {
  transform: translateY(-2px);
}
#resetPfpBtn:hover { background: #ff5bb8; color: black; }
#randomPfpBtn:hover { background: #ff5bb8; color: black; }
#savePfpBtn:hover { background: #ff5bb8; color: black; }

.trait-row span {
  text-transform: uppercase;
}

/* */
.pfp-button {
  border-radius: 10px !important;
  padding: 20px 50px !important;
  min-width: 120px !important;
}

#resetPfpBtn,
#randomPfpBtn, 
#savePfpBtn {
  border-radius: 10px !important;
  padding: 14px 50px !important;
  min-width: 120px !important;
}



/* === PFP TEXT CONTROLS === */
.text-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 200px;
    min-height: 35px;
    padding: 16px 10px;
    color: white;
    font-family: 'PixelFont', 'Courier New', monospace;
    font-size: 14x;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    border: 1px solid #7b3cff;
    margin-bottom: 2px;
}

.text-control-row input {
    flex: 1;
    background: rgba(255, 91, 184, 0.1);
    border: 1px solid #ff5bb8;
    border-radius: 5px;
    color: white;
    font-family: 'PixelFont', 'Courier New', monospace;
    font-size: 14px;
    padding: 2px 2px;
    text-align: center;
    margin: 0 0px;
}

.text-control-row input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'PixelFont', 'Courier New', monospace;
    font-size: 14px;
}

.text-control-row input:focus {
    outline: none;
    border-color: #7b3cff;
    background: rgba(123, 60, 255, 0.2);
}












///////////////////////////* === RESPONSIVITY === */





/* === GALLERY MODAL RESPONSIVE === */
@media (max-width: 1600px) {
  .gallery-content {
    width: min(50vw, 800px) !important;
    height: min(50vh, 800px) !important;
    padding: 15px !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    gap: 10px !important;
    max-height: calc(80vh - 120px) !important;
  }
  
  .gallery-header {
    margin-bottom: 20px !important;
  }
  
  .tab-btn {
    padding: 8px 20px !important;
    font-size: 14px !important;
  }
  
  .category-btn {
    padding: 6px 15px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 1200px) {
  .gallery-content {
    width: min(95vw, 800px) !important;
    height: min(90vh, 600px) !important;
    padding: 10px !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
    gap: 8px !important;
  }
  
  .tab-btn {
    padding: 6px 15px !important;
    font-size: 12px !important;
  }
  
  .category-btn {
    padding: 4px 12px !important;
    font-size: 10px !important;
  }
}

/* === ABOUT MODAL RESPONSIVE === */
@media (max-width: 1600px) {
  .about-content {
    width: min(90vw, 900px) !important;
    height: min(85vh, 650px) !important;
    padding: 20px !important;
  }
  
  .about-body {
    font-size: clamp(14px, 1.8vw, 20px) !important;
  }
  
  .about-section {
    margin-bottom: 25px !important;
    padding: 15px !important;
  }
  
  .about-section h2 {
    font-size: 22px !important;
  }
  
  .about-image img {
    max-height: 60vh !important;
  }
}

@media (max-width: 1200px) {
  .about-content {
    width: min(95vw, 700px) !important;
    height: min(90vh, 500px) !important;
    padding: 15px !important;
  }
  
  .about-body {
    font-size: clamp(12px, 1.6vw, 18px) !important;
  }
  
  .about-section {
    margin-bottom: 20px !important;
    padding: 12px !important;
  }
  
  .about-section h2 {
    font-size: 18px !important;
  }
  
  .about-section p, 
  .about-section li {
    font-size: 14px !important;
  }
  
  .about-image img {
    max-height: 30vh !important;
  }
}

/* === BUY MODAL RESPONSIVE === */
@media (max-width: 1600px) {
  .buy-content {
    width: min(70vw, 400px) !important;
    height: min(70vh, 500px) !important;
    padding: 15px !important;
  }
}

@media (max-width: 1200px) {
  .buy-content {
    width: min(75vw, 350px) !important;
    height: min(75vh, 450px) !important;
    padding: 10px !important;
  }
  
  .buy-content iframe,
  #jupiter-terminal {
    transform: scale(0.85) !important;
    transform-origin: center center !important;
  }
}

/* === MEDIA VIEWER RESPONSIVE === */
@media (max-width: 1600px) {
  .viewer-content {
    max-width: 90% !important;
    max-height: 75vh !important;
    padding: 30px 15px !important;
  }
}

@media (max-width: 1200px) {
  .viewer-content {
    max-width: 95% !important;
    max-height: 70vh !important;
    padding: 20px 10px !important;
  }
  
  .nav-arrow {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
}

#jupiter-terminal {
  width: 100% !important;
  height: 100% !important;
  padding: 30px 20px !important;
}


/* === PFP EDITOR RESPONSIVE === */
@media (max-width: 1600px) {
  .pfp-content {
    width: min(80vw, 700px);
    height: min(80vh, 700px);
    padding: 10px;
  }
  
  .pfp-editor-container {
    display: flex;
    gap: 40px;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-top: 60px;
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  #pfpCanvas {
    width: min(60vw, 300px);
    height: min(60vw, 300px);
  }
  
  .pfp-controls {
    min-width: min(150px, 20vw);
    max-height: 50vh;
    gap: 5px;
    padding: 8px;
  }
  
  .trait-row {
    padding: 3px 5px;
    min-width: 140px;
  }
  
  .trait-row span,
  .text-control-row {
    font-size: 9px;
  }
  
.text-control-row {
    padding: 6px 6px;
    min-width: 140px;
    height: 20px !important;
}
  
  .text-control-row input {
    font-size: 8px;
    padding: 1px 3px;
    width: 80px;
  }

  .pfp-button {
    padding: 6px 10px !important;
    font-size: 10px !important;
    min-width: 80px !important;
    margin: 2px !important;
  }
  
  #pfp-buttons {
    gap: 8px !important;
    padding: 5px !important;
  }

  .text-control-row {
    font-size: 9px !important;
    padding: 10px 10px !important;
    min-width: 140px !important;
    height: 40px !important;
  }
  
  .text-control-row input {
    font-size: 8px !important;
    padding: 1px 3px !important;
    width: 80px !important;
    height: 16px !important;
  }
  
  .text-control-row span {
    font-size: 9px !important;
  }
}

.text-control-row input::placeholder {
  font-size: 10px !important;
  color: #888 !important;
}

@media (max-width: 1200px) {
  .pfp-content {
    width: min(90vw, 450px);
    height: min(100vh, 900px);
  }
  
  #pfpCanvas {
    width: min(25vw, 140px) !important;
    height: min(25vw, 140px) !important;
    max-width: 150px !important;
    max-height: 150px !important;
  }
  
  .pfp-controls {
    min-width: min(100px, 15vw);
    max-height: 30vh;
    gap: 3px;
    padding: 5px;
  }
  
  .trait-row {
    padding: 2px 4px;
    min-width: 120px;
  }
  
  .trait-row span,
  .text-control-row {
    font-size: 6px;
  }
  
  .text-control-row {
    padding: 2px 3px;
    min-width: 120px;
  }
  
  .text-control-row input {
    font-size: 4px;
    padding: 1px 2px;
    width: 70px;
  }

  .pfp-button {
    padding: 6px 10px !important;
    font-size: 10px !important;
    min-width: 80px !important;
    margin: 2px !important;
  }
  
  #pfp-buttons {
    gap: 8px !important;
    padding: 5px !important;
  }

  .text-control-row {
    font-size: 8px !important;
    padding: 2px 3px !important;
    min-width: 120px !important;
    height: 18px !important;
  }
  
  .text-control-row input {
    font-size: 4px !important;
    padding: 1px 2px !important;
    width: 70px !important;
    height: 14px !important;
  }
  
  .text-control-row span {
    font-size: 4px !important;
  }
}


/* === ISOLATION FIX === */
@media (max-width: 1600px) {
  /* Gallery ONLY */
  .gallery-modal .gallery-content {
  }
  
  /* About ONLY */
  .about-modal .about-content {
  }
  
  /* Buy ONLY */
  .buy-modal .buy-content {
  }
  
  /* PFP ONLY */
  .pfp-modal .pfp-content {
  }
}


/* === DEBUG GALLERY FORCE === */
@media (max-width: 1600px) {
  .gallery-modal.active .gallery-content {
    width: min(50vw, 1000px) !important;
    height: min(50vh, 800px) !important;
    max-width: min(85vw, 1000px) !important;
    max-height: min(85vh, 800px) !important;
    min-width: min(85vw, 1000px) !important;
    min-height: min(85vh, 800px) !important;
  }
}


/* === FIX MODAL CLOSE FLICKER === */
.gallery-modal {
  transition: opacity 0.2s ease !important;
}

.gallery-modal:not(.active) .gallery-content {
  display: none !important;
}

.gallery-modal.active .gallery-content {
  display: block !important;
}










/* === MOBILE VERSION - OPTIMIZED === */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    transform: none !important;
    position: relative;
  }

.parallax-bg {
  background-image: url('IMAGES/bg-main-mobile.png') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* trava o fundo */
  
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  will-change: auto !important;
  transition: none !important;
  z-index: -1;
}

  /* === base layout === */
  .desktop-version { 
    display: none !important; 
  }
  
  .mobile-version { 
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px 20px 60px;
  }

  /* === pink scrollbar === */
  ::-webkit-scrollbar {
    width: 6px !important;
  }

  ::-webkit-scrollbar-track {
    background: rgba(255, 91, 184, 0.1) !important;
    border-radius: 3px !important;
  }

  ::-webkit-scrollbar-thumb {
    background: #ff5bb8 !important;
    border-radius: 3px !important;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #ff3da5 !important;
  }

  /* === GLITCH EFFECT === */
  .mobile-title,
  .mobile-heart .mobile-text,
  .mobile-frame .mobile-text,
  .mobile-buy,
  .mobile-lab {
    animation: textGlitchMobile 1.5s infinite !important;
  }

  @keyframes textGlitchMobile {
    0% { 
      text-shadow: 
        0 0 10px rgba(255, 91, 184, 0.8),
        2px 0 #ff5bb8, -2px 0 #7b3cff;
      transform: translateX(0);
    }
    25% { 
      text-shadow: 
        0 0 10px rgba(255, 91, 184, 0.8),
        -2px 0 #ff5bb8, 2px 0 #7b3cff;
      transform: translateX(2px);
    }
    50% { 
      text-shadow: 
        0 0 10px rgba(255, 91, 184, 0.8),
        2px 0 #ff5bb8, -2px 0 #7b3cff;
      transform: translateX(-2px);
    }
    75% { 
      text-shadow: 
        0 0 10px rgba(255, 91, 184, 0.8),
        -2px 0 #ff5bb8, 2px 0 #7b3cff;
      transform: translateX(1px);
    }
    100% { 
      text-shadow: 
        0 0 10px rgba(255, 91, 184, 0.8),
        2px 0 #ff5bb8, -2px 0 #7b3cff;
      transform: translateX(0);
    }
  }

  /* === title === */
  .mobile-title {
    font-family: 'PixelFont', monospace;
    font-size: 28px !important; /* Mesmo tamanho dos botões */
    color: white !important;
    text-align: center;
    margin: 80px 0 -20px;
    line-height: 1.2;
  }

  /* === heart === */
  .mobile-heart {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
  }

  .mobile-heart img {
    width: 350px !important;
    height: auto !important;
  }

.mobile-heart .mobile-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important; /* Centraliza perfeito */
    font-family: 'PixelFont', monospace;
    font-size: 26px !important;
    color: white;
    z-index: 10;
    white-space: nowrap;
}

  /* === social media === */
  .mobile-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    margin: -10px 0 20px;
  }

  .mobile-social img {
    width: 80px;
    height: 80px;
  }

  /* === BUY ILY === */
  .mobile-buy {
    font-family: 'PixelFont', monospace;
    font-size: 22px !important; /* Tamanho padrão */
    color: white;
    cursor: pointer;
    padding: 16px 35px;
    border: 2px solid #ff5bb8;
    border-radius: 12px;
    background: rgba(255, 91, 184, 0.15);
    transition: all 0.3s ease;
  }

  .mobile-buy:active {
    background: rgba(255, 91, 184, 0.3);
    transform: scale(0.95);
  }

  /* === FRAMES === */
  .mobile-frame {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
  }

  .mobile-frame img {
    width: 325px;
    height: auto;
    margin: 0px 0 10px;
  }

.mobile-frame .mobile-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important; /* Centraliza perfeito */
    font-family: 'PixelFont', monospace;
    font-size: 26px !important;
    color: white;
    z-index: 10;
    white-space: nowrap;
}



  /* === ILY LAB === */
  .mobile-lab {
    font-family: 'PixelFont', monospace;
    font-size: 22px !important; /* Mesmo tamanho dos botões */
    color: white;
    cursor: pointer;
    padding: 16px 35px;
    border: 2px solid #ff5bb8;
    border-radius: 12px;
    background: rgba(255, 91, 184, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 10px;
  }

  .mobile-lab:active {
    background: rgba(255, 91, 184, 0.3);
    transform: scale(0.95);
  }

/* === row === */
.trait-row span {
    font-size: 12px !important;
}

.text-control-row span {
    font-size: 12px !important;
}

.text-control-row {
    font-size: 12px !important;
    padding: 10px 8px !important;
}

.text-control-row input {
    font-size: 12px !important;
    padding: 6px 8px !important;
    height: 20px !important;
}



  /* === mobile modals === */
  
  /* About Modal */
  .about-content {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    height: min(85vh, 550px) !important;
    width: min(95vw, 400px) !important;
  }



/* PFP Editor */
.pfp-content {
    width: min(95vw, 400px) !important;
    height: min(100vh, 600px) !important;
    padding: 40px !important;
    display: flex !important;
    flex-direction: column !important;
}

.pfp-header {
    text-align: center;
    margin-bottom: 10px !important;
    flex-shrink: 0 !important;
}

.pfp-editor-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    flex: 1 !important;
    align-items: center !important;
    margin-top: -10px !important;
}

/* PFP first */
.pfp-canvas-container {
    order: 1 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0 !important;
}

#pfpCanvas {
    width: 200px !important;
    height: 200px !important;
    margin: 0 !important;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
}

/* controla */
.pfp-controls {
    order: 2 !important;
    max-height: 175px !important;
    width: 100% !important;
    overflow-y: auto;
    flex-shrink: 0 !important;
}


/* separated buttons */

    #pfp-buttons .pfp-button {
        display: inline-block !important;
        padding: 12px 20px !important;
        font-size: 12px !important;
        font-family: 'PixelFont', monospace !important;
        background: #ff5bb8 !important;
        color: white !important;
        border-radius: 8px !important;
        margin: 2px !important;
        cursor: pointer !important;
        border: 2px solid #ff5bb8 !important;
        min-width: 80px !important;
        text-align: center !important;
        box-shadow: 0 0 10px rgba(255, 91, 184, 0.5) !important;
    }

    

}





/* === DESKTOP === */
@media (min-width: 769px) {
  .mobile-version { display: none !important; }
  .desktop-version { display: block !important; }
  .parallax-bg { background-image: url('IMAGES/bg-main.png') !important; }
}



@media (max-width: 768px) {
    .parallax-bg {
        transform: none !important;
        transition: none !important;
        animation: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-attachment: fixed !important;
    }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important;
    max-height: 65vh !important;
    grid-auto-rows: minmax(100px, 1fr);
    align-items: start;
    overflow-y: auto !important;
  }

  .gallery-item {
    aspect-ratio: 1;
    height: auto;
    min-height: 0;
  }

}
