* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.bg-fallback {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.content {
  max-width: 800px;
  padding: 20px;
  z-index: 2;
}

.content h1 {
  font-family: 'Cinzel', serif;
  font-size: 5rem;
  letter-spacing: 0.2em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  margin-bottom: 0.2em;
}

.content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5em;
  opacity: 0.9;
}

.content p {
  font-size: 1.2rem;
  margin-bottom: 2em;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: transparent;
  color: #d48eff;
  border: 2px solid #d48eff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(212, 142, 255, 0.5);
}

.btn:hover {
  background: #d48eff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(212, 142, 255, 0.8);
}

.floating-skull {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  animation: float 3s ease-in-out infinite;
  z-index: 1;
}

.floating-skull img {
  width: 80px;
  filter: drop-shadow(0 0 10px #d48eff);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-20px); }
}

.lore {
  padding: 100px 20px;
  text-align: center;
  background: rgba(0,0,0,0.7);
}

.scroll {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid #333;
  background: rgba(20, 20, 30, 0.8);
  border-radius: 10px;
}

.lore h3 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 1em;
  color: #d48eff;
}

.lore p {
  font-size: 1.1rem;
  margin-bottom: 1em;
}

.lore .small {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

.nft-gallery {
  padding: 80px 20px;
  text-align: center;
}

.nft-gallery h3 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 2em;
  color: #d48eff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nft-card {
  background: rgba(30, 30, 40, 0.8);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid #444;
}

.nft-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nft-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.nft-card:hover img {
  filter: brightness(1.2) saturate(1.3);
}

.nft-card p {
  padding: 15px;
  font-size: 0.95rem;
  color: #ccc;
}

footer {
  padding: 60px 20px;
  text-align: center;
  background: #0a0a0f;
}

footer p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.socials a {
  color: #d48eff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.socials a:hover {
  color: #fff;
  text-shadow: 0 0 10px #d48eff;
}

.hashtag {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ============= СЕКЦИЯ "YOUR SKELETONS" ============= */
#userNFTSection {
  padding: 80px 20px 40px 20px;
  text-align: center;
  display: none; /* Изначально скрыта */
  background: rgba(0,0,0,0.7);
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

#userNFTSection h3 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 2em;
  color: #d48eff;
  text-shadow: 0 0 15px rgba(212, 142, 255, 0.5);
}

#userNFTGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============= КРУТОЙ БЕЙДЖ "ORDER OF THE SKULL" ============= */
#skull-order-badge {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  /* Убираем фон, рамку и padding — оставляем только изображение */
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

#skull-order-badge.hidden {
  display: none;
}

#skull-order-image {
  width: 80px; /* Увеличиваем размер */
  height: 80px;
  border-radius: 50%; /* Круглая форма */
  object-fit: cover;
  /* Мощные эффекты */
  border: 3px solid #ff6b35;
  box-shadow: 
    0 0 20px rgba(255, 107, 53, 0.7),
    0 0 40px rgba(255, 107, 53, 0.3);
  /* Анимации: парение + пульсация */
  animation: float-badge 4s ease-in-out infinite, pulse-badge 2s ease-in-out infinite;
  /* Fallback, если изображение не загрузится */
  background: #1a1a1a url('https://via.placeholder.com/80x80/1a1a1a/ff6b35?text=💀') center/cover no-repeat;
  cursor: pointer;
  transition: all 0.3s ease;
}

#skull-order-image:hover {
  width: 90px;
  height: 90px;
  box-shadow: 
    0 0 30px rgba(255, 107, 53, 0.9),
    0 0 60px rgba(255, 107, 53, 0.5);
  transform: translateY(-5px) rotate(5deg);
}

/* Убираем текст полностью */
#skull-order-name {
  display: none !important;
}

/* Анимация парения */
@keyframes float-badge {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-15px) rotate(3deg); 
  }
}

/* Анимация пульсации свечения */
@keyframes pulse-badge {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(255, 107, 53, 0.7),
      0 0 40px rgba(255, 107, 53, 0.3);
  }
  50% { 
    box-shadow: 
      0 0 30px rgba(255, 107, 53, 1.0),
      0 0 60px rgba(255, 107, 53, 0.6);
  }
}

/* ============= КНОПКА ПОДКЛЮЧЕНИЯ КОШЕЛЬКА ============= */
#connect-wallet-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #d48eff, #9d4edd);
  color: #000;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 1001;
  box-shadow: 0 4px 15px rgba(212, 142, 255, 0.4);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#connect-wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 142, 255, 0.6);
  background: linear-gradient(135deg, #e0b3ff, #b06ee3);
}

#connect-wallet-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(212, 142, 255, 0.4);
}

#connect-wallet-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  background: linear-gradient(135deg, #a0a0a0, #808080);
}

#connect-wallet-btn.connected {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

#connect-wallet-btn.connected:hover {
  background: linear-gradient(135deg, #66bb6a, #4CAF50);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

/* ============= СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА КОШЕЛЬКА ============= */
.wallet-section {
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
}

.wallet-btn {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.wallet-btn:hover {
  background: #ff521b;
}

.wallet-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

#walletStatus {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

#connectedAddress {
  word-break: break-all;
  font-family: monospace;
  margin: 0.5rem 0;
  color: #ff6b35;
}

.disconnect-btn {
  background: #e74c3c !important;
}

.wallet-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.wallet-modal-content {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
  border: 1px solid #333;
}

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wallet-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
}

.close-modal:hover {
  color: #fff;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wallet-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-option:hover {
  background: rgba(255, 107, 53, 0.2);
}

.wallet-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.wallet-name {
  font-weight: 600;
}

.account-selection {
  display: none;
  margin-top: 1.5rem;
}

.account-list {
  max-height: 200px;
  overflow-y: auto;
  margin: 1rem 0;
  border: 1px solid #333;
  border-radius: 8px;
}

.account-item {
  padding: 0.75rem;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: all 0.2s;
}

.account-item:last-child {
  border-bottom: none;
}

.account-item:hover {
  background: rgba(255, 107, 53, 0.1);
}

.account-item.selected {
  background: rgba(255, 107, 53, 0.2);
}

.account-address {
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.account-balance {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.25rem;
}

.connect-account-btn {
  width: 100%;
  padding: 0.75rem;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.connect-account-btn:hover {
  background: #ff521b;
}

.connect-account-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

/* ============= УТИЛИТАРНЫЕ КЛАССЫ ============= */
.hidden {
  display: none !important;
}

.text-glow {
  text-shadow: 0 0 10px currentColor;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ============= УВЕДОМЛЕНИЯ ============= */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 1000;
  border-left: 4px solid #ff6b35;
  display: none;
}

.notification.success {
  border-left-color: #27ae60;
}

.notification.error {
  border-left-color: #e74c3c;
}

/* ============= ЗАГРУЗКА ============= */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading-text {
  text-align: center;
  color: #ff6b35;
  margin: 1rem 0;
}

/* ============= ПРОВЕРКА NFT ============= */
.nft-checking {
  background: rgba(255, 107, 53, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

/* ============= АДАПТИВНОСТЬ ============= */
@media (max-width: 768px) {
  .content h1 { 
    font-size: 3rem; 
    letter-spacing: 0.1em;
  }
  
  .content h2 { 
    font-size: 1.4rem; 
  }
  
  .floating-skull img { 
    width: 60px; 
  }
  
  #connect-wallet-btn {
    top: 15px;
    left: 15px;
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  #skull-order-image {
    width: 60px;
    height: 60px;
  }
  
  .wallet-modal-content {
    padding: 1.5rem;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .content h1 { 
    font-size: 2.2rem; 
  }
  
  .content h2 { 
    font-size: 1.2rem; 
  }
  
  .content p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  #connect-wallet-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  #skull-order-image {
    width: 55px;
    height: 55px;
  }
  
  .wallet-modal-content {
    padding: 1rem;
  }
  
  .wallet-option {
    padding: 0.75rem;
  }
}