/* Добавим в начало файла */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

/* Обновим медиа-запросы */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .character-banner {
    height: 300px;
  }
  
  .banner-content {
    padding: 1rem;
  }
  
  .banner-content h3 {
    font-size: 1.4rem;
  }
  
  .stats-grid,
  .weapons-grid,
  .characters-grid,
  .artifacts-grid,
  .blessing-grid {
    grid-template-columns: 1fr;
  }
  
  .blessing-types {
    grid-template-columns: 1fr;
  }
  
  .tabs-header {
    flex-direction: column;
  }
  
  .tab-btn {
    padding: 0.8rem;
    text-align: center;
  }
  
  .tier-big-image {
    height: 300px;
  }
  
  .tier-image-caption h3 {
    font-size: 1.5rem;
  }
  
  .tier-image-caption p {
    font-size: 1rem;
  }
  
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    width: 100%;
    right: -100%;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .link-group {
    margin-bottom: 2rem;
  }
  
  .tier-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .modal-body {
    padding: 1.5rem 1rem;
  }
}

/* Добавим стили для сенсорных устройств */
@media (hover: none) {
  .btn:hover, 
  .nav-link:hover,
  .character-card:hover,
  .weapon-card:hover,
  .artifact-card:hover,
  .blessing-card:hover {
    transform: none !important;
  }
  
  .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  }
}



/* styles.css */
:root {
    --primary-color: #60a5fa;
    --secondary-color: #2563eb;
    --background-color: #0f172a;
    --text-color: #e5e7eb;
    --card-background: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(10px);
    --neon-glow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --fire-color: #f97316;
    --water-color: #3b82f6;
    --wind-color: #22d3ee;
    --light-color: #eab308;
    --shadow-color: #8b5cf6;
    --transition: all 0.3s ease;
  }
  

  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.1);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
  }
  
  .light-theme ::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
  }
  
  .light-theme ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
  }
  
  /* Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background: linear-gradient(to bottom, var(--background-color), #1e293b);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  .light-theme body {
    background: white;
  }

  .light-theme .btn-primary {
    color: #1e293b; /* Темный цвет текста */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3); /* Добавляем легкую тень для лучшей читаемости */
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Preloader */
  .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
  }
  
  .preloader-inner {
    text-align: center;
  }
  
  .preloader-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .preloader-icon span {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    animation: pulse 1.5s infinite ease-in-out;
  }
  
  .preloader-icon span:nth-child(2) {
    animation-delay: 0.3s;
  }
  
  .preloader-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(0.8);
      opacity: 0.5;
    }
    50% {
      transform: scale(1.2);
      opacity: 1;
    }
  }
  
  /* Toast Notification */
  .toast {
    position: fixed;
    top: 80px;
    right: -600px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: right 0.5s ease;
  }
  
  .light-theme .toast {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .toast.active {
    right: 30px;
  }
  
  .toast-content {
    display: flex;
    align-items: center;
  }
  
  .toast i {
    font-size: 24px;
    margin-right: 15px;
  }
  
  .toast i.fa-check-circle {
    color: var(--success-color);
  }
  
  .toast i.fa-exclamation-circle {
    color: var(--warning-color);
  }
  
  .toast i.fa-times-circle {
    color: var(--error-color);
  }
  
  .toast .message {
    display: flex;
    flex-direction: column;
  }
  
  .toast .text {
    font-size: 14px;
    font-weight: 500;
  }
  
  .toast .text.text-1 {
    font-weight: 600;
    color: #fff;
  }
  
  .light-theme .toast .text.text-1 {
    color: #1e293b;
  }
  
  .toast .text.text-2 {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
  }
  
  .light-theme .toast .text.text-2 {
    color: rgba(30, 41, 59, 0.7);
  }
  
  .toast .close {
    margin-left: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    color: #fff;
  }
  
  .light-theme .toast .close {
    color: #1e293b;
  }
  
  .toast .close:hover {
    opacity: 1;
  }
  
  .toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden; 
    }


  
    @keyframes progress {
        0% {
            transform: scaleX(1);
        }
        100% {
            transform: scaleX(0); /* Уменьшаем ширину до 0 */
        }
    }

  .light-theme .toast .progress {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .toast .progress:before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: var(--primary-color);
    border-radius: 0 0 12px 12px;
    animation: progress 5s linear forwards;
  }
  
  @keyframes progress {
    100% {
      right: 100%;
    }
  }
  
  /* Header & Navigation */
  header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
  }
  
  .light-theme header {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  header.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.9);
  }
  
  .light-theme header.scrolled {
    background: rgba(255, 255, 255, 0.9);
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: var(--transition);
  }
  
  .light-theme .logo a {
    color: #1e293b;
  }
  
  .neon-logo span {
    transition: var(--transition);
    display: inline-block;
  }
  
  .neon-logo:hover span {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
    transform: translateY(-2px);
  }
  
  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
  }
  
  .nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: var(--transition);
  }
  
  .light-theme .nav-toggle span {
    background: #1e293b;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
  }
  
  .nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--transition);
  }
  
  .nav-link i {
    font-size: 0.9rem;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
  }
  
  .nav-link:hover {
    color: var(--primary-color);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  
  /* Hero Section */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url(images/other/Solo-leveling.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, .7), transparent);
  }
  
  .particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  .title-word {
    display: inline-block;
    margin-right: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgb(255, 255, 255);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
    transform: translateY(20px);
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
  }
  
  .mouse {
    width: 25px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
  }
  
  .wheel {
    width: 5px;
    height: 8px;
    background: #fff;
    border-radius: 3px;
    margin-top: 5px;
    animation: scroll 2s infinite;
  }
  
  @keyframes scroll {
    0% {
      opacity: 1;
      transform: translateY(0);
    }
    100% {
      opacity: 0;
      transform: translateY(15px);
    }
  }
  
  .arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: -3px;
    animation: arrow-down 2s infinite;
  }
  
  .arrows span:nth-child(2) {
    animation-delay: 0.3s;
  }
  
  .arrows span:nth-child(3) {
    animation-delay: 0.6s;
  }
  
  @keyframes arrow-down {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    z-index: 1;
  }
  
  .btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  }
  
  .btn-primary {
    min-width: 48px;
    min-height: 48px;
    padding: 12px 24px;
  }

  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
  }
  
  .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgb(255, 255, 255);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }
  
  .light-theme .btn-outline {
    border: 2px solid rgb(255, 255, 255);
  }
  
  .btn-outline:hover {
    border-color: #ffffff;
    color: var(--primary-color);
    background: rgba(96, 165, 250, 0.1);
  }
  
  .pulse {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(96, 165, 250, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
    }
  }
  
  .liquid {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 200px;
    background: var(--primary-color);
    z-index: -1;
    transition: 0.5s;
  }
  
  .liquid::after,
  .liquid::before {
    content: '';
    width: 200%;
    height: 200%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    background: #000;
  }
  
  .liquid::before {
    border-radius: 45%;
    background: rgba(15, 23, 42, 1);
    animation: animate 5s linear infinite;
  }
  
  .light-theme .liquid::before {
    background: rgba(241, 245, 249, 1);
  }
  
  .liquid::after {
    border-radius: 40%;
    background: rgba(15, 23, 42, 0.5);
    animation: animate 10s linear infinite;
  }
  
  .light-theme .liquid::after {
    background: rgba(241, 245, 249, 0.5);
  }
  
  @keyframes animate {
    0% {
      transform: translate(-50%, -75%) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -75%) rotate(360deg);
    }
  }
  
  .btn:hover .liquid {
    top: -120px;
  }
  
  .btn-more {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  
  .light-theme .btn-more {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b;
  }
  
  .btn-more:hover {
    background: rgba(96, 165, 250, 0.2);
    color: var(--primary-color);
  }
  
  .btn-more i {
    font-size: 0.8rem;
  }
  
  /* Section Styles */
  section {
    margin-bottom: 5rem;
    padding-top: 4rem;
  }
  
  .section-header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
  }
  
  .section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
  }
  
  .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    border-radius: 2px;
  }
  
  .filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }
  
  .filter-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .light-theme .filter-btn {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .filter-btn i {
    font-size: 0.9rem;
  }
  
  .filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
  }
  
  /* Character Banner */
  .character-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    height: 400px;
  }
  
  .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(0, 66, 221, 0.4));
  }
  
  .light-theme .banner-overlay {
    background: linear-gradient(to right, rgba(241, 245, 249, 0.8), rgba(241, 245, 249, 0.4));
  }
  
  .banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    max-width: 600px;
  }
  
  .banner-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }
  
  .light-theme .banner-content h3 {
    color: #1e293b;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  
  .rating {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .rating i {
    color: var(--light-color);
    font-size: 1.2rem;
  }
  
  .rating span {
    font-weight: 600;
    margin-left: 10px;
    background: rgba(234, 179, 8, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    color: var(--text-color);
  }
  
  /* Guide Tabs */
  .guide-tabs {
    background: var(--card-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  .light-theme .guide-tabs {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  .tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .light-theme .tabs-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
  }
  
  .tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
  }
  
  .tab-btn.active {
    color: var(--primary-color);
  }
  
  .tab-btn.active::after {
    width: 100%;
  }
  
  .tabs-content {
    padding: 1.5rem;
  }
  
  .tab-pane {
    display: none;
  }
  
  .tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Stats Grid */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .light-theme .stat-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .stat-card:hover {
    background: rgba(96, 165, 250, 0.05);
    border-color: rgba(96, 165, 250, 0.2);
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
  }
  
  .stat-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
  }
  
  .stat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    margin-top: 0.5rem;
  }
  
  .light-theme .stat-bar {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .stat-progress {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    flex-grow: 1;
  }
  
  .stat-bar span {
    position: static;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    width: 40px;
    text-align: right;
  }
  
  .stat-description {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-color);
  }
  
  .light-theme .stat-description {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Weapons Grid */
  .weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .weapon-card {
    background: var(--card-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
  }
  
  .light-theme .weapon-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .weapon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), var(--neon-glow);
  }
  
  .weapon-image {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
  .weapon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .weapon-card:hover .weapon-image img {
    transform: scale(1.05);
  }
  
  .weapon-tier {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
  }
  
  .ss-tier .weapon-tier {
    background: linear-gradient(45deg, #f59e0b, #ef4444);
  }
  
  .s-tier .weapon-tier {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  }
  
  .weapon-info {
    padding: 1.5rem;
  }
  
  .weapon-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
  }
  
  .weapon-element {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
  }
  
  .shadow-element {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
  }
  
  .wind-element {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
  }
  
  .water-element {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
  }
  
  .fire-element {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
  }
  
  .light-element {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
  }
  
  .weapon-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.8rem;
    margin-left: 5px;
  }
  
  .light-theme .weapon-type {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .weapon-info p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.8;
  }
  
  .weapon-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
  }
  
  .weapon-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: var(--text-color);
  }
  
  .light-theme .weapon-stats span {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .weapon-stats i {
    font-size: 0.8rem;
  }
  
  /* Artifacts Grid */
  .artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
  }
  
  .artifact-card {
    background: var(--card-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    transition: var(--transition);
  }
  
  .light-theme .artifact-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .artifact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  
  .artifact-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }
  
  .artifact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .artifact-info {
    padding: 1rem;
    flex: 1;
  }
  
  .artifact-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
  }
  
  .set-bonus {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
  }
  
  .set-bonus p {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 15px;
  }
  
  .set-bonus p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
  }
  
  .artifact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.8rem;
  }
  
  .artifact-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: var(--text-color);
  }
  
  .light-theme .artifact-stats span {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .artifact-stats i {
    font-size: 0.7rem;
  }
  
  /* Blessing Grid */
  .blessing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .blessing-card {
    background: var(--card-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    gap: 1rem;
  }
  
  .light-theme .blessing-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .blessing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  
  .blessing-icon {
    width: 50px;
    height: 50px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
  }
  
  .blessing-info {
    flex: 1;
  }
  
  .blessing-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
  }
  
  .blessing-info p {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 0.8rem;
  }
  
  .blessing-rarity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
  }
  
  /* Characters Grid */
  .characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .character-card {
    background: var(--card-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
  }
  
  .light-theme .character-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .character-card.hidden {
    display: none;
  }
  
  .character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  
  .character-image {
    position: relative;
    height: 250px;
    overflow: hidden;
  }
  
  .character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .character-card:hover .character-image img {
    transform: scale(1.05);
  }
  
  .character-tier {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
  }
  
  .character-info {
    padding: 1.5rem;
  }
  
  .character-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
  }
  
  .character-class {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
  }
  
  .fire-element .character-class {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
  }
  
  .water-element .character-class {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
  }
  
  .wind-element .character-class {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
  }
  
  .light-element .character-class {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
  }
  
  .shadow-element .character-class {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
  }
  
  .character-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  
  .character-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: var(--text-color);
  }
  
  .light-theme .character-stats span {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .character-stats i {
    font-size: 0.8rem;
  }
  
  .load-more {
    text-align: center;
    margin-top: 3rem;
  }
  
  /* Tier Lists */
  .tier-list-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  
  .tier-tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .light-theme .tier-tab-btn {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .tier-tab-btn.active, .tier-tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
  }
  
  .tier-list-content {
    background: var(--card-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .light-theme .tier-list-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .tier-list-pane {
    display: none;
    padding: 2rem;
  }
  
  .tier-list-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  
  .tier-row {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .light-theme .tier-row {
    background: rgba(0, 0, 0, 0.03);
  }
  
  .tier-row:last-child {
    margin-bottom: 0;
  }
  
  .tier-header {
    width: 100px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
    color: #fff;
  }
  
  .light-theme .tier-header {
    color: #1e293b;
  }
  
  .sss-tier .tier-header {
    background: linear-gradient(45deg, #ef4444, #f59e0b);
  }
  
  .ss-tier .tier-header {
    background: linear-gradient(45deg, #f59e0b, #3b82f6);
  }
  
  .s-tier .tier-header {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  }
  
  .tier-image {
    flex: 1;
    padding: 1rem;
    text-align: center;
  }
  
  .tier-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .tier-list-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
  }
  
  .tier-list-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  .tier-list-footer a:hover {
    text-decoration: underline;
  }
  
  /* Footer */
  footer {
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .light-theme footer {
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-logo {
    flex: 1;
    min-width: 250px;
  }
  
  
  .footer-logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
  }
  
  .light-theme .footer-logo a {
    color: #1e293b;
  }
  
  .footer-logo p {
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .light-theme .footer-logo p {
    color: rgba(30, 41, 59, 0.7);
  }
  
  .footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  
  .footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
  }
  
  .light-theme .footer-social a {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(30, 41, 59, 0.7);
  }
  
  .footer-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
  }
  
  .link-group h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .light-theme .link-group h4 {
    color: #1e293b;
  }
  
  .link-group h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
  }
  
  .link-group ul {
    list-style: none;
  }
  
  .link-group li {
    margin-bottom: 0.8rem;
  }
  
  .link-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .light-theme .link-group a {
    color: rgba(30, 41, 59, 0.7);
  }
  
  .link-group a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
  }
  
  .link-group i {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .light-theme .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
  }
  
  .light-theme .footer-bottom p {
    color: rgba(30, 41, 59, 0.6);
  }
  
  .footer-legal {
    display: flex;
    gap: 1.5rem;
  }
  
  .footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
  }
  
  .light-theme .footer-legal a {
    color: rgba(30, 41, 59, 0.6);
  }
  
  .footer-legal a:hover {
    color: var(--primary-color);
  }
  
  /* FAB Button */
  .fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    z-index: 99;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
  }
  
  .fab.active {
    opacity: 1;
    visibility: visible;
  }
  
  .fab:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6);
  }
  
  /* Modal */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .modal.active {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-content {
    background: var(--background-color);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalFadeIn 0.3s ease;
  }
  
  .light-theme .modal-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
  }
  
  .light-theme .modal-close {
    color: rgba(30, 41, 59, 0.7);
  }
  
  .modal-body {
    padding: 2.5rem;
    color: var(--text-color);
  }
  
  .modal-character h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .modal-character-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .modal-character-class, .modal-character-tier {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .modal-character-content h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
  }
  
  .modal-character-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 3px;
  }
  
  .modal-character-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  /* Responsive Styles */
  @media (max-width: 992px) {
    .nav-menu {
      position: fixed;
      top: 0;
      right: -300px;
      width: 300px;
      height: 100vh;
      background: rgba(15, 23, 42, 0.95);
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      flex-direction: column;
      align-items: flex-start;
      padding: 6rem 2rem 2rem;
      transition: right 0.3s ease;
      z-index: 100;
      border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .light-theme .nav-menu {
      background: rgba(255, 255, 255, 0.95);
      border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
      right: 0;
    }
    
    .nav-toggle {
      display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
      opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }
    
    .footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .link-group {
      margin-bottom: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .stats-grid {
      grid-template-columns: 1fr;
    }
    
    .artifacts-grid {
      grid-template-columns: 1fr;
    }
    
    .weapons-grid {
      grid-template-columns: 1fr;
    }
    
    .characters-grid {
      grid-template-columns: 1fr;
    }
    
    .tabs-header {
      flex-wrap: wrap;
    }
    
    .tab-btn {
      flex: 1 0 50%;
    }
    
    .tier-row {
      flex-direction: column;
    }
    
    .tier-header {
      width: 100%;
      text-align: center;
      padding: 0.8rem;
    }
    
    .tier-image {
      padding: 1rem;
    }
  }
  
  @media (max-width: 576px) {
    .hero-buttons {
      flex-direction: column;
      width: 100%;
    }
    
    .btn {
      width: 100%;
    }
    
    .tab-btn {
      flex: 1 0 100%;
      padding: 0.8rem;
      font-size: 0.9rem;
    }
    
    .modal-body {
      padding: 1.5rem;
    }
  }
  
  /* Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  .floating {
    animation: float 3s ease-in-out infinite;
  }
  
  /* Element Colors */
  .fire-bg {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
  }
  
  .water-bg {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
  }
  
  .wind-bg {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
  }
  
  .light-bg {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.3);
  }
  
  .shadow-bg {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
  }

  /* Новые стили для разделенных камней */
.blessing-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .blessing-type h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .blessing-type h3 i {
    font-size: 1.1rem;
  }


  /* Адаптивность для футера */
@media (max-width: 992px) {
    .footer-content {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 576px) {
    .footer-content {
      grid-template-columns: 1fr;
    }
    
    .blessing-types {
      grid-template-columns: 1fr;
    }
  }
  
  /* Анимация для карточек камней */
  .blessing-card {
    transition: all 0.3s ease;
  }
  
  .blessing-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .tier-big-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  }
  
  .tier-big-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .tier-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
  }
  
  .tier-image-caption h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }
  
  .tier-image-caption p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  /* Анимация плавающего эффекта */
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-15px);
    }
  }
  
  .floating {
    animation: float 4s ease-in-out infinite;
  }
  
/* Добавляем в styles.css */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

.preloader-inner {
  text-align: center;
  position: relative;
  width: 300px;
}

.preloader-icon {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
}

/* Анимация теневого портала */


@keyframes spinPortal {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Теневые солдаты - улучшенная анимация */
.shadow-soldier {
  position: absolute;
  width: 40px;
  height: 80px;
  background: linear-gradient(to bottom, #3b0764, #7e22ce);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.7);
  animation: soldierFloat 2.5s infinite ease-in-out;
}

.shadow-soldier.left {
  left: 30px;
  top: 50px;
  transform-origin: center bottom;
}

.shadow-soldier.right {
  right: 30px;
  top: 50px;
  transform-origin: center bottom;
  animation-delay: 0.4s;
}

@keyframes soldierFloat {
  0%, 100% {
    transform: translateY(0) scaleY(1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.7);
  }
  25% {
    transform: translateY(-25px) scaleY(1.15);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.9);
  }
  50% {
    transform: translateY(0) scaleY(0.9);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.7);
  }
  75% {
    transform: translateY(15px) scaleY(1.1);
    box-shadow: 0 -10px 25px rgba(139, 92, 246, 0.8);
  }
}

/* Ядро энергии */
.energy-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, #a855f7 0%, #7e22ce 70%, transparent 100%);
  border-radius: 50%;
  filter: blur(2px);
  animation: corePulse 2s infinite alternate ease-in-out;
}

@keyframes corePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.9);
  }
}

/* Прогресс бар */
.loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 30px;
  overflow: hidden;
  position: relative;
}

.loading-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7e22ce, #a855f7);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Текст загрузки */
.preloader-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e9d5ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 20px;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.preloader-text::after {
  content: '...';
  position: absolute;
  animation: dotsPulse 1.5s infinite steps(4);
}

@keyframes dotsPulse {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Эффект частиц */
.particle {
  position: absolute;
  background: #a855f7;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0;
  will-change: transform;
  animation: particleFloat 3s infinite linear;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(var(--tx), var(--ty));
  }
}

@keyframes particleFloat {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty));
    opacity: 0;
  }
}


/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
  /* Уменьшаем анимации на мобильных */
  .preloader-icon::before,
  .shadow-soldier,
  .energy-core {
    animation-duration: 2s !important;
  }
  
  /* Упрощаем фильтры */
  .filter-buttons {
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-buttons::-webkit-scrollbar {
    display: none;
  }
  
  /* Оптимизация сеток */
  .characters-grid, 
  .weapons-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .character-card, 
  .weapon-card {
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* Улучшаем отображение карточек */
  .character-image, 
  .weapon-image {
    height: 180px;
  }
  
  .character-info, 
  .weapon-info {
    padding: 1rem;
  }
  
  /* Отключаем сложные эффекты */
  .liquid, 
  .pulse {
    display: none;
  }
  
  /* Оптимизация шрифтов */
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 14px;
  }
}

/* Оптимизация загрузки */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Исправление для фильтров */
.filter-btn {
  flex-shrink: 0;
}

/* Улучшение отзывчивости */
html {
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  width: 100%;
}


.character-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px; /* Увеличенная высота */
}

.banner-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Полупрозрачный оверлей */
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  top: 100px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .character-banner {
      height: 300px; /* Меньшая высота для мобильных */
  }

}

@media (max-width: 768px) {
  .banner-content h3 {
      font-size: 1.4rem; /* Меньший размер заголовка */
  }

  .rating {
      font-size: 0.9rem; /* Меньший размер рейтинга */
  }
}

/* Основные стили для header */
header.glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(15, 23, 42, 0.8); /* Темный фон для темной темы */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; /* Плавный переход */

}

/* Стили для светлой темы */
.light-theme header.glass {
  background-color: rgba(255, 255, 255, 0.9); /* Светлый фон */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Более легкая тень */
}

/* Исправление для кнопки "Тир-листы" на мобильных */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-buttons .btn {
    width: auto;
    min-width: 140px;
    margin: 0.5rem;
  }
  
  .tier-tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

/* Обновленные стили для кнопок героя */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Основные стили для кнопок */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 150px;
}

/* Стили для кнопки "Начать" */
.btn-primary {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Стили для кнопки "Тир-листы" */
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    padding: 0 1rem;
    gap: 0.5rem;
  }
  
  .btn {
    padding: 0.8rem 1rem;
    min-width: 120px;
    font-size: 0.9rem;
    flex: 1 1 45%;
  }
  
  .btn-primary {
    order: 1; /* Кнопка "Начать" будет первой */
  }
  
  .btn-outline {
    order: 2; /* Кнопка "Тир-листы" будет второй */
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 0.5rem;
  }
}

/* Гарантируем, что кнопки не будут скрыты */
.btn-primary,
.btn-outline {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

/* Обновленные стили для карточек артефактов */
.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.artifact-card {
  background: var(--card-background);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  max-height: 600px; /* Ограничиваем максимальную высоту */
}

.light-theme .artifact-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.artifact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.artifact-image {
  width: 50%;
  height: 270px; /* Фиксированная высота изображения */
  flex-shrink: 0;
  overflow: hidden;
}

.artifact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.artifact-card:hover .artifact-image img {
  transform: scale(1.05);
}

.artifact-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Скрываем переполнение */
}

.artifact-info h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.set-bonus {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.9;
  flex: 1;
  overflow-y: auto; /* Добавляем прокрутку при необходимости */
  max-height: 300px; /* Ограничиваем высоту бонусов */
  padding-right: 5px; /* Оставляем место для скроллбара */
}

/* Стили для скроллбара */
.set-bonus::-webkit-scrollbar {
  width: 5px;
}

.set-bonus::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

.set-bonus p {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 15px;
  line-height: 1.5;
}

.set-bonus p::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.set-bonus p:last-child {
  margin-bottom: 0;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .artifacts-grid {
    grid-template-columns: 1fr;
  }
  
  .artifact-card {
    max-height: none;
    flex-direction: column;
  }
  
  .artifact-image {
    height: 180px;
  }
  
  .set-bonus {
    max-height: none;
    overflow-y: visible;
  }
}


/* Обновленные стили для камней благословения */
.blessing-types {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem;
}

.blessing-type h3 {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  color: var(--primary-color);
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blessing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blessing-card {
  background: var(--card-background);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  height: 500px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.light-theme .blessing-card {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.blessing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.blessing-image {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex; /* Добавляем flex */
  align-items: center; /* Центрируем по вертикали */
  justify-content: center; /* Центрируем по горизонтали */
}

.blessing-image img {
  width: auto; /* Ширина подстраивается под пропорции */
  height: 100%; /* Высота на всю высоту контейнера */
  object-fit: contain; /* Сохраняем пропорции без обрезки */
  object-position: center; /* Центрируем изображение */
  transition: transform 0.6s ease;
}


.blessing-card:hover .blessing-image img {
  transform: scale(1.1);
}

.blessing-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.blessing-info h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.3;
}

.blessing-info p {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
}

/* Стиль скроллбара */
.blessing-info p::-webkit-scrollbar {
  width: 6px;
}

.blessing-info p::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

.blessing-rarity {
  margin-top: auto;
  font-size: 1rem;
  font-weight: 700;
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Адаптация для мобильных */
@media (max-width: 992px) {
  .blessing-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .blessing-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  
  .blessing-card {
    height: 480px;
  }
  
  .blessing-image {
    height: 180px;
  }
  
  .blessing-info {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blessing-card {
    height: auto;
    max-height: 550px;
  }

  .blessing-image {
    height: 150px;
  }
  
  .blessing-type h3 {
    font-size: 1.6rem;
  }
  
  .blessing-info h4 {
    font-size: 1.3rem;
  }
}

/* Общие стили для всех оружий (оставляем только самое необходимое) */
.weapons-grid {
  display: grid;
  gap: 1.5rem;
}

.weapon-card {
  background: var(--card-background);
  backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Специальные стили ТОЛЬКО для комбо Сон Джин-Ву */
.jinwoo-combos {
  grid-template-columns: repeat(2, 1fr);
}

.jinwoo-combos .weapon-pair {
  display: contents;
}

.jinwoo-combos .weapon-pair-header {
  grid-column: 1 / -1;
  font-size: 1.2rem;
  color: var(--primary-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Стили ТОЛЬКО для обычного списка оружий */
.regular-weapons {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.regular-weapons .weapon-card {
  /* Можно добавить особые стили для обычных карточек */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.regular-weapons .weapon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .jinwoo-combos {
    grid-template-columns: 1fr;
  }
  
  .jinwoo-combos .weapon-pair-header {
    grid-column: auto;
  }
  
  .regular-weapons {
    grid-template-columns: 1fr;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


body.preloader-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

body.preloader-active::-webkit-scrollbar {
  display: none;
}

body.preloader-active {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Основные стили прелоадера */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a15;
  background: linear-gradient(135deg, #0a0a15 0%, #1a1035 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.preloader-inner {
  position: relative;
  width: 100%;
  max-width: 300px;
  text-align: center;
  padding: 2rem;
}

/* Иконка прелоадера */
.preloader-icon {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
}

/* Теневые солдаты */
.shadow-soldier {
  position: absolute;
  width: 50px;
  height: 90px;
  background: linear-gradient(to bottom, #3b0764, #7e22ce);
  border-radius: 25px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.7);
  z-index: 2;
}

.shadow-soldier.left {
  left: 30px;
  top: 50px;
  transform-origin: center bottom;
  animation: soldierFloat 3s infinite ease-in-out;
}

.shadow-soldier.right {
  right: 30px;
  top: 50px;
  transform-origin: center bottom;
  animation: soldierFloat 3s infinite ease-in-out 0.4s;
}

@keyframes soldierFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(3deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(10px) rotate(-3deg); }
}

/* Энергетическое ядро */
.energy-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #a855f7 0%, #7e22ce 70%);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
  z-index: 3;
  animation: corePulse 2s infinite alternate;
}

@keyframes corePulse {
  0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 20px rgba(168, 85, 247, 0.6); }
  100% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 40px rgba(168, 85, 247, 1); }
}

/* Прогресс-бар */
.loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 30px;
  overflow: hidden;
  position: relative;
}

.loading-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7e22ce, #a855f7);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

.loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressGlow 2s infinite linear;
}

@keyframes progressGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Текст прелоадера */
.preloader-text {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e9d5ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  position: relative;
}

.preloader-text::after {
  content: '...';
  position: absolute;
  animation: dotsPulse 1.5s infinite steps(4);
}

@keyframes dotsPulse {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Частицы (добавляем через JavaScript) */
.particle {
  position: absolute;
  background: #a855f7;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0;
  animation: particleFloat 3s infinite linear;
  z-index: 1;
}

@keyframes particleFloat {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--tx), var(--ty));
    opacity: 0;
  }
}


/* Прогресс-бар (ваш существующий .progress) */
.toast .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgb(0, 175, 255);
}

.toast .progress::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform-origin: left;
  animation: progress 5s linear forwards;
}

@keyframes progress {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

.toast .close {
  margin-left: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 16px;
}

.toast .close:hover {
  opacity: 1;
  transform: rotate(90deg);
}


/* Стили для модального окна изображений */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}

.image-modal-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.image-modal-close:hover {
  color: var(--primary-color);
}

/* Адаптивные стили для изображений тир-листов */
.tier-big-image {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tier-big-image a {
  display: block;
  cursor: zoom-in;
}

.tier-big-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tier-big-image:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .tier-big-image {
      height: auto;
  }
  
  .image-modal-content {
      max-width: 95%;
  }
  
  .image-modal-img {
      max-height: 70vh;
  }
}

/* Стили для кнопки "Показать еще" */
.load-more-btn {
  background: var(--glass-bg);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.load-more-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.preloader {
  transition: opacity 0.5s ease-out;
}

.loading-progress {
  transition: width 0.1s linear;
}

/* Мобильная адаптация для карточек оружия */
@media (max-width: 768px) {
  .weapons-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .weapon-card {
    flex-direction: column;
    padding: 10px;
    min-height: auto;
  }
  
  .weapon-image {
    width: 100%;
    height: 120px;
    position: relative;
  }
  
  .weapon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .character-tier {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
  }
  
  .weapon-info {
    padding: 8px 0 0;
  }
  
  .weapon-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .weapon-element, .weapon-type {
    font-size: 12px;
    margin-bottom: 5px;
  }
  
  .weapon-info p {
    font-size: 11px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .weapon-stats {
    font-size: 10px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .weapons-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  
  .weapon-image {
    height: 100px;
  }
}

.theme-toggle {
  display: none !important;
}

/* Creator Rankings Section */
#creator-rankings {
  border-top: 1px solid rgba(96,165,250,0.3);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  margin-top: -2rem;
}

#creator-rankings::before {
  content: none;
}

#creator-rankings .section-header h2 {
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(96,165,250,0.3);
}

#creator-rankings .section-header p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto;
}

.creator-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.creator-card {
  background: rgba(15,23,42,0.7);
  border-radius: 16px;
  padding: 2px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(96,165,250,0.3);
}

.creator-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.5) 0%, 
    rgba(124, 58, 237, 0.5) 100%);
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.creator-card:hover::before {
  opacity: 1;
}

.card-content {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
}

/* Diamond Card (Top Creator) */
.diamond-card {
  border: 1px solid rgba(184, 242, 255, 0.3);
}

.diamond-card::before {
  background: linear-gradient(135deg, 
    rgba(184, 242, 255, 0.4) 0%, 
    rgba(0, 180, 216, 0.4) 50%, 
    rgba(96, 165, 250, 0.4) 100%);
}

.diamond-card .rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, 
    rgba(184, 242, 255, 0.2) 0%, 
    rgba(0, 180, 216, 0.2) 100%);
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(184, 242, 255, 0.3);
}

.diamond-card .rank-icon {
  font-size: 1.2rem;
  animation: diamondPulse 2s infinite ease-in-out;
  color: #b9f2ff;
}

@keyframes diamondPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.diamond-card .rank-title {
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #b9f2ff, #00b4d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.diamond-card .creator-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.diamond-card .creator-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.diamond-card .creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(96,165,250,0.5);
  box-shadow: 0 0 20px rgba(96,165,250,0.3);
  transition: transform 0.5s ease;
}

.diamond-card:hover .creator-avatar img {
  transform: scale(1.05) rotate(5deg);
}

.diamond-card .avatar-frame {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, #60a5fa, #8b5cf6);
  border-image-slice: 1;
  border-radius: 50%;
  animation: rotateFrame 8s linear infinite;
  pointer-events: none;
}

@keyframes rotateFrame {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.diamond-card .creator-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  display: inline-block;
}

.diamond-card .creator-name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, transparent);
}

.diamond-card .creator-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.diamond-card .creator-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.diamond-card .stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.5);
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.diamond-card .stat:hover {
  background: rgba(96, 165, 250, 0.1);
  transform: translateY(-3px);
}

.diamond-card .stat i {
  font-size: 1.2rem;
  color: #60a5fa;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 50%;
}

.diamond-card .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.3rem;
}

.diamond-card .stat strong {
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
}

.diamond-card .creator-footer {
  display: flex;
  justify-content: flex-end;
}

.diamond-card .creator-signature {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  position: relative;
  padding-left: 20px;
}

.diamond-card .creator-signature::before {
  content: '""';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 1.2rem;
  color: rgba(96, 165, 250, 0.5);
}

/* Gold Card (Other Creators) */
.gold-card {
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.gold-card::before {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.3) 0%, 
    rgba(255, 165, 0, 0.3) 100%);
}

.gold-card .creator-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
  color: #0f172a;
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.gold-card .creator-name {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.gold-card .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gold-card .stat-item {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.gold-card .stat-item:hover {
  background: rgba(255, 215, 0, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.gold-card .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gold-card .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.gold-card .stat-item:nth-child(1) .stat-value {
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.gold-card .stat-item:nth-child(2) .stat-value {
  color: #60a5fa;
}

.gold-card .stat-item:nth-child(3) .stat-value {
  color: #10b981;
}

.gold-card .creator-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Channel Button (YouTube Style) */
.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  text-decoration: none;
}

.channel-btn:hover {
  background: linear-gradient(135deg, #E60000 0%, #B30000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.channel-btn:active {
  background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
  transform: translateY(0);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  position: relative;
  transition: transform 0.3s ease;
}

.btn-arrow svg {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.channel-btn:hover .btn-arrow {
  transform: translateX(3px) translateY(-3px);
}

.channel-btn:hover .btn-arrow svg {
  transform: rotate(45deg);
}

/* Эффект пульсации при наведении */
.channel-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.channel-btn:hover::after {
  opacity: 1;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  70% { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

/* Анимация появления карточек */
.creator-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.creator-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.diamond-card { transition-delay: 0.1s; }
.gold-card { transition-delay: 0.3s; }

/* Адаптация для мобильных */
@media (max-width: 768px) {
  #creator-rankings {
    padding: 3rem 0;
  }
  
  .creator-cards {
    gap: 1.5rem;
  }
  
  .diamond-card .creator-header {
    flex-direction: column;
    text-align: center;
  }
  
  .diamond-card .creator-name::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
  }
  
  .diamond-card .creator-stats,
  .gold-card .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .gold-card .creator-badge {
    position: static;
    margin-bottom: 1rem;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .diamond-card .creator-stats,
  .gold-card .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .diamond-card .creator-avatar {
    width: 100px;
    height: 100px;
  }
  
  .diamond-card .creator-name {
    font-size: 1.5rem;
  }
  
  .card-content {
    padding: 1.5rem;
  }
}

/* Специальные исправления для Firefox Mobile */
@-moz-document url-prefix() {
  @media (max-width: 767px) {
    .jinwoo-combo {
      padding: 1rem;
    }
    
    .weapon-image {
      height: 120px;
    }
    
    .weapon-info h4 {
      font-size: 1rem;
    }
    
    .weapon-stats {
      font-size: 0.75rem;
    }
  }
}


.minimal-footer {
  background: rgba(10, 10, 15, 0.9);
  color: #aaa;
  padding: 2rem 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 1px;
}

.slogan {
  margin: 0.3rem 0 0;
  color: #777;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #ccc;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #fff;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links-mini {
  display: flex;
  gap: 1.5rem;
}

.footer-links-mini a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-mini a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-meta {
    flex-direction: column;
  }
}

/* Стили для книги */
.book-container {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.book-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.book-page.active {
  opacity: 1;
  transform: translateX(0);
}

.book-page.prev {
  transform: translateX(-100%);
}

/* Навигация по страницам */
.book-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}

.book-nav-btn {
  background: rgba(96, 165, 250, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-nav-btn:hover {
  background: var(--primary-color);
  color: white;
}

.book-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(96, 165, 250, 0.1);
}

.page-counter {
  font-weight: 600;
  color: var(--text-color);
  min-width: 60px;
  text-align: center;
}

/* Анимации перелистывания */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.book-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: none; /* Убираем transition для ручного управления анимацией */
}

.book-page.active {
  opacity: 1;
  transform: translateX(0);
}

/* Стили для упрощенной статистики */
.stat-item {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text-color);
}

.stat-item strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Убираем старые стили карточек */
.stats-grid {
  display: block;
  margin: 1rem 0;
}


/* Стили админ-панели */
.admin-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  color: #fff;
}

.admin-login {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.admin-login input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.admin-login button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.admin-login button:hover {
  background: var(--secondary-color);
}

.admin-panel h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.admin-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  min-height: 100px;
}

.error-message {
  color: #ff6b6b;
  margin-top: 10px;
}

#save-status {
  color: #4caf50;
  font-weight: 600;
}


/* Weapon Modal Styles */
.weapon-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.weapon-modal.active {
  opacity: 1;
  visibility: visible;
}

.weapon-modal-content {
  background: var(--background-color);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalFadeIn 0.3s ease;
}

.light-theme .weapon-modal-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes modalFadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.modal-body {
  padding: 2rem;
  color: var(--text-color);
}

.weapon-modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.weapon-modal-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.light-theme .weapon-modal-image {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.weapon-modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.weapon-modal-type,
.weapon-modal-element {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.light-theme .weapon-modal-type,
.light-theme .weapon-modal-element {
  background: rgba(0, 0, 0, 0.1);
}

.weapon-modal-notes {
  margin-top: 1.5rem;
}

.weapon-modal-notes h4 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 15px;
}

.weapon-modal-notes h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 3px;
}

.weapon-modal-constellations {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
}

.modal-close-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  width: auto;
  align-self: flex-end;
}

.modal-close-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
}

.light-theme .modal-close {
  color: rgba(30, 41, 59, 0.7);
}



/* Responsive Styles */
@media (max-width: 768px) {
  .weapon-modal-content {
      width: 95%;
      max-height: 85vh;
  }

  .weapon-modal-header {
      flex-direction: column;
      align-items: flex-start;
  }

  .weapon-modal-image {
      width: 80px;
      height: 80px;
  }

  .weapon-modal-title {
      font-size: 1.5rem;
  }

  .modal-body {
      padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .weapon-modal-title {
      font-size: 1.3rem;
  }

  .weapon-modal-type,
  .weapon-modal-element {
      font-size: 0.8rem;
  }

  .weapon-modal-notes h4 {
      font-size: 1.1rem;
  }

  .modal-close-btn {
      padding: 0.6rem 1.2rem;
      font-size: 0.9rem;
  }
}

/* Добавьте эти стили в ваш CSS файл */
.constellation-scroll {
  max-height: 200px; /* Ограничиваем высоту */
  overflow-y: auto;  /* Добавляем вертикальный скролл при необходимости */
  padding-right: 10px; /* Отступ для скроллбара */
  margin-top: 10px;
}

/* Стилизация скроллбара */
.constellation-scroll::-webkit-scrollbar {
  width: 6px;
}

.constellation-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.constellation-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.constellation-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Promo Codes Section - Enhanced */
#promo-codes {
  padding: 5rem 0;
  position: relative;
}

#promo-codes .section-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}

#promo-codes .section-header h2 i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 20px;
}

.promo-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.light-theme .promo-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.1), transparent 70%);
  z-index: -1;
}

.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.promo-card.neon {
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.3), 
              inset 0 0 10px rgba(96, 165, 250, 0.2);
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3), 
                inset 0 0 10px rgba(96, 165, 250, 0.2);
  }
  100% {
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.5), 
                inset 0 0 15px rgba(96, 165, 250, 0.3);
  }
}

.promo-ribbon {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.promo-content {
  position: relative;
  z-index: 2;
}

.promo-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-weight: 700;
  text-align: center;
}

.promo-code-wrapper {
  margin-bottom: 1.5rem;
}

.promo-code {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.light-theme .promo-code {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.promo-card:hover .promo-code {
  border-color: rgba(96, 165, 250, 0.5);
}

.code-text {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-color);
  flex-grow: 1;
  padding: 0.5rem 0;
  user-select: all;
}

.copy-btn {
  background: rgba(96, 165, 250, 0.2);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.copy-btn:hover {
  background: rgba(96, 165, 250, 0.4);
}

.copy-icon, .check-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.check-icon {
  opacity: 0;
  color: var(--success-color);
}

.copy-btn.copied .copy-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

.copy-btn.copied .check-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.promo-details {
  font-size: 0.95rem;
  color: var(--text-color);
  padding: 0 1rem;
}

.promo-details p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-details i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  font-size: 1rem;
}

.promo-instructions {
  margin: 3rem auto 0;
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  gap: 2rem;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
}

.light-theme .promo-instructions {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.instructions-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.instructions-text {
  flex: 1;
}

.instructions-text h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.instructions-text ol {
  padding-left: 1.5rem;
}

.instructions-text li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.5;
}

.instructions-text strong {
  font-weight: 600;
  color: var(--primary-color);
}

.instructions-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.instructions-text a:hover {
  text-decoration: underline;
}

.update-date {
  color: var(--primary-color);
  font-weight: 600;
}

/* Notification Toast */
.promo-notification {
  position: fixed;
  top: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateX(150%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 350px;
}

.light-theme .promo-notification {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
}

.promo-notification.show {
  transform: translateX(0);
}

.promo-notification i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.promo-notification .notification-content {
  flex: 1;
}

.promo-notification h5 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-color);
}

.promo-notification p {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.9;
}

.promo-notification .promo-code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 5px;
}

@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }
  
  .promo-instructions {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .instructions-text ol {
    text-align: left;
  }
  
  .promo-notification {
    max-width: calc(100% - 40px);
    right: 20px;
  }
}

/* Обновленные стили для карточек оружия */
.weapons-grid.regular-weapons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.weapons-grid.regular-weapons .weapon-card {
  background: var(--card-background);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column; /* Важно - сохраняем вертикальное расположение */
}


/* Убедимся, что у родителя есть position: relative */
.weapon-card {
  position: relative;
  overflow: hidden; /* Оставляем для общей чистоты */
}

.weapon-card::after {
  content: 'Подробнее';       /* Текст надписи */
  position: absolute;         /* Абсолютное позиционирование */
  bottom: 10px;               /* Отступ снизу (можно настроить) */
  right: 10px;                /* Отступ справа (можно настроить) */
  z-index: 2;                 /* Поверх других элементов */
  pointer-events: none;       /* Позволяет кликам проходить сквозь */
  opacity: 1;                 /* Видима по умолчанию */

  /* --- Стили, скопированные из .btn-more --- */
  display: inline-flex;       /* Чтобы padding и т.д. работали как у кнопки */
  align-items: center;        /* Вертикальное выравнивание текста (если нужно) */
  background: rgba(255, 255, 255, 0.1); /* Фон для темной темы */
  color: #fff;                /* Цвет текста для темной темы */
  border: none;               /* Убираем рамку */
  padding: 0.5rem 1rem;       /* Паддинги как у кнопки */
  border-radius: 6px;         /* Скругление как у кнопки */
  font-size: 0.9rem;          /* Размер шрифта как у кнопки */
  font-weight: 500;           /* Толщина шрифта как у кнопки */
  transition: background-color 0.3s ease, color 0.3s ease; /* Плавный переход для ховера */
}

/* Стили для светлой темы */
.light-theme .weapon-card::after {
  background: rgba(0, 0, 0, 0.05); 
  color: #1e293b;
}

.weapon-card:hover::after {
  background: rgba(96, 165, 250, 0.2); /* Фон ховера как у кнопки */
  color: var(--primary-color);       /* Цвет текста ховера как у кнопки */
}

/* Адаптация для мобильных (можно подстроить отступы/размеры) */
@media (max-width: 768px) {
  .weapon-card::after {
    bottom: 8px;
    right: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

.tier-image-caption { 
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none; 
}

.tier-big-image a,
.tier-big-image img {
  display: block; 
  cursor: pointer; 
  pointer-events: auto;
}

.tier-big-image a.image-modal-trigger {
  cursor: zoom-in;
  pointer-events: auto; 
}


.neon-logo {
  display: flex;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--text-color);
  text-decoration: none;
}

.neon-logo span {
  transition: var(--transition);
}

.neon-logo:hover span {
  transform: translateY(-2px) scale(1.05);
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

/* ==================== IMPROVED HEADER ==================== */
header.glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-theme header.glass {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme header.glass.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.light-theme .logo a {
  color: #1e293b;
}

.neon-logo .logo-letter {
  background: linear-gradient(90deg, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
  transition: all 0.3s ease;
}

.neon-logo:hover .logo-letter {
  text-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.light-theme .nav-link {
  color: rgba(30, 41, 59, 0.9);
}

.nav-link i {
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #8b5cf6);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: #60a5fa;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover i {
  transform: translateY(-2px);
  color: #60a5fa;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  transform: rotate(30deg);
}

.light-theme .theme-toggle {
  color: rgba(30, 41, 59, 0.9);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.light-theme .toggle-bar {
  background: #1e293b;
}

.nav-toggle.active .toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


@keyframes dots-pulse {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Responsive styles */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .light-theme .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: 0.8rem 0;
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .preloader-icon {
    width: 180px;
    height: 180px;
  }

  .shadow-soldier {
    width: 40px;
    height: 70px;
  }

  .shadow-soldier.left {
    left: 20px;
  }

  .shadow-soldier.right {
    right: 20px;
  }

  .energy-core {
    width: 30px;
    height: 30px;
  }
}


.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.dimensional-portal {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.portal-core {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(96,165,250,0.8) 0%, transparent 70%);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: core-pulse 2s ease-in-out infinite;
}

.core-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(96,165,250,0.4) 0%, transparent 60%);
  filter: blur(30px);
  animation: glow-oscillation 3s alternate infinite;
}

.rune-animation {
  position: absolute;
  width: 140%;
  height: 140%;
  background-image: url('data:image/svg+xml;utf8,<svg .../>'); /* SVG рун */
  animation: rune-rotate 20s linear infinite;
  opacity: 0.3;
}

.particle-field {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  background: rgba(96,165,250,0.6);
  border-radius: 50%;
  filter: blur(2px);
  animation: particle-float 4s infinite linear;
}

.portal-ring {
  position: absolute;
  border: 2px solid rgba(96,165,250,0.3);
  border-radius: 50%;
  animation: portal-spin 30s linear infinite;
}

.portal-ring.outer {
  width: 100%;
  height: 100%;
  border-width: 3px;
  animation-delay: -5s;
}

.glow-line {
  position: absolute;
  width: 20%;
  height: 100%;
  background: linear-gradient(to right, 
      transparent 0%, 
      rgba(96,165,250,0.4) 50%, 
      transparent 100%);
  filter: blur(10px);
}

.holographic-progress {
  position: relative;
  width: 80%;
  height: 4px;
  margin: 40px auto 0;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, 
      #3b82f6 0%, 
      #8b5cf6 50%, 
      #3b82f6 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.scanline {
  position: absolute;
  right: -20%;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(255,255,255,0.4) 50%, 
      transparent 100%);
  animation: scan 2s infinite;
}

@keyframes core-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes portal-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes particle-float {
  0% { transform: translate(0,0) scale(0.8); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1.2); opacity: 0; }
}

@keyframes scan {
  0% { right: -20%; }
  100% { right: 120%; }
}

@keyframes rune-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.shadow-caster {
  position: absolute;
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 20px rgba(96,165,250,0.3));
  opacity: 0.5;
}

.silhouette {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('shadow-figure-silhouette.png') center/contain no-repeat;
  animation: shadow-movement 4s ease-in-out infinite;
}

@keyframes shadow-movement {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.aura-effect {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, 
      rgba(96,165,250,0.1) 0%, 
      transparent 70%);
  animation: aura-pulse 3s ease-in-out infinite;
}












/* Секция сборок Арены времени */
.arena-builds {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Контейнер с карточками */
.arena-builds-container {
  width: 100%;
  overflow-x: auto;
  padding: 2rem 0;
  margin: 0 auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.arena-builds-container::-webkit-scrollbar {
  display: none;
}

.arena-builds-grid {
  display: inline-flex;
  gap: 1.5rem;
  padding: 0 2rem;
  width: max-content;
}

/* Основные стили карточки */
.arena-build-card {
  width: 280px;
  min-width: 280px;
  height: 400px;
  background: var(--card-background);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

/* Фоновое изображение */
.arena-build-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: all 0.4s ease;
}

/* Затемнение фона */
.arena-build-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* Контент карточки */
.arena-build-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 3;
  overflow-y: auto;
}

/* Заголовок и текст */
.arena-build-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.arena-build-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.arena-build-subtitle {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(96, 165, 250, 0.5);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.lock-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.lock-btn:hover {
  color: var(--primary-color);
}

.lock-btn.locked {
  color: var(--primary-color);
}

/* Стили для активного состояния */
.arena-build-card.active .arena-build-content {
  opacity: 1;
  visibility: visible;
}

.arena-build-card.active::after {
  background: rgba(0, 0, 0, 0.7);
}

/* Для ПК - эффекты при наведении */
@media (hover: hover) and (pointer: fine) {
  .arena-build-card:hover .arena-build-bg {
    filter: blur(5px);
    transform: scale(1.1);
  }
  
  .arena-build-card:hover::after {
    background: rgba(0, 0, 0, 0.7);
  }
  
  .arena-build-card:hover .arena-build-content {
    opacity: 1;
    visibility: visible;
  }
}

/* Стили для наборов */
.build-set {
  margin-bottom: 1.5rem;
}

.build-set-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.build-set-title i {
  font-size: 1rem;
}

.build-set-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.build-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
}

.build-item:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.3);
}

.build-item i {
  color: var(--primary-color);
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

/* Особый стиль для карточки отряда теней */
.shadow-squad-card .arena-build-bg {
  object-position: top;
}

.shadow-squad-info {
  margin-top: 1rem;
}

.shadow-squad-info p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.shadow-squad-info strong {
  color: #8b5cf6;
  font-weight: 600;
}

.shadow-squad-images {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.shadow-squad-images img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.5);
}

/* Кнопка для мобильных */
.mobile-toggle-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: none;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .arena-build-card {
    width: 260px;
    height: 380px;
  }
  
  .arena-build-title {
    font-size: 1.5rem;
  }
  
  .build-set-items {
    grid-template-columns: 1fr;
  }
  
  .mobile-toggle-btn {
    display: block;
  }
  
  /* На мобильных контент скрыт по умолчанию */
  .arena-build-content {
    opacity: 0;
    visibility: hidden;
  }
  
  .arena-build-card.active .arena-build-content {
    opacity: 1;
    visibility: visible;
  }
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.arena-build-card {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: calc(var(--index) * 0.1s);
  opacity: 0;
}



.scroll-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-nav-btn:hover {
  background: var(--primary-color);
}

.scroll-nav-btn.left {
  left: 10px;
}

.scroll-nav-btn.right {
  right: 10px;
}

@media (max-width: 768px) {
  .scroll-nav-btn {
    display: none;
  }
}


/* Обновлённые стили для горизонтального скролла */
.arena-builds-scroll-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 20px;
  margin: 0 -1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.arena-builds-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.arena-builds-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.arena-builds-scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.arena-builds-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

.arena-builds-grid {
  display: inline-flex;
  gap: 1.5rem;
  padding: 2rem 1rem;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}

/* Кнопки навигации */
.scroll-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-nav-btn:hover {
  background: var(--primary-color);
}

.scroll-nav-btn.left {
  left: 10px;
}

.scroll-nav-btn.right {
  right: 10px;
}

@media (max-width: 768px) {
  .scroll-nav-btn {
    display: none;
  }
  
  .arena-builds-scroll-container {
    scroll-snap-type: x mandatory;
  }
  
  .arena-build-card {
    scroll-snap-align: center;
  }
}

.arena-build-card.locked {
  box-shadow: 0 0 0 2px var(--primary-color);
}

.arena-build-card.locked .lock-btn {
  color: var(--primary-color);
}


/* Стили для карточки отряда теней */
.shadow-squad-card {
  position: relative;
}

/* Основные изображения теней с именами */
.shadow-squad-images {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.shadow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shadow-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: 5px;
}

.shadow-name {
  margin-top: 5px;
  font-size: 12px;
  color: white;
  text-align: center;
}

/* Слой при наведении */
.shadows-hover-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
  gap: 20px;
}

.hover-shadow-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hover-shadow-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
}

.hover-shadow-name {
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* Эффекты при наведении */
.shadow-squad-card:hover .shadows-hover-layer {
  opacity: 1;
}

.shadow-squad-card:hover .arena-build-content {
  opacity: 0 !important;
}

/* Стили для кнопки фиксации */
.lock-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  z-index: 5;
  position: relative;
}

.lock-btn:hover {
  color: var(--primary-color);
}

.lock-btn.locked {
  color: var(--primary-color);
}

.lock-btn i {
  transition: transform 0.3s ease;
}

.lock-btn.locked i {
  transform: rotate(10deg);
}


/* Стили для выделения главной тени */

/* В обычном состоянии */
.main-shadow {
  position: relative;
}

.main-shadow img {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.main-shadow .shadow-name {
  color: #f59e0b;
  font-weight: bold;
}

/* При наведении */
.hover-shadow-item.main-shadow {
  position: relative;
  margin-bottom: 10px;
}

.main-shadow-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #1e293b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hover-shadow-item.main-shadow img {
  width: 100px;
  height: 100px;
  border: 3px solid #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
}

.hover-shadow-item.main-shadow .hover-shadow-name {
  color: #f59e0b;
  font-size: 18px;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

/* Дополнительные стили для контраста */
.shadow-squad-info .main-shadow-name {
  color: #f59e0b;
  font-weight: bold;
}

/* Анимация пульсации для главной тени */
@keyframes pulse-gold {
  0% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.8); }
  100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.5); }
}

.main-shadow img {
  animation: pulse-gold 2s infinite;
}


/* Стили для секции сборок босса гильдии */
.guild-boss-builds {
  padding: 4rem 0;
}

.guild-boss-scroll-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.guild-boss-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.guild-boss-scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.guild-boss-grid {
  display: inline-flex;
  gap: 1.2rem;
  padding: 0 2rem;
  width: max-content;
}

.guild-boss-card {
  width: 220px;
  min-width: 220px;
  height: 320px;
  background: rgba(30, 30, 35, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}


.guild-boss-character-container {
  position: relative;
  height: 100%;
}

.guild-boss-character {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}





.boss-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.stat-name {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
}

.boss-tips {
  margin-top: 0.5rem;
}

.boss-tips-title {
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.boss-tips-title i {
  font-size: 0.8rem;
}

.boss-tips p {
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Эффекты при наведении */
.guild-boss-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.guild-boss-card:hover .guild-boss-character {
  transform: scale(1.05);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .guild-boss-card {
    width: 180px;
    min-width: 180px;
    height: 260px;
  }
  
  .character-name {
    font-size: 1rem;
    padding: 0.5rem 0.3rem 0.3rem;
  }
}


/* Дополнительные стили для выпадающего контента */
.expand-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: rgba(139, 92, 246, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.expand-btn:hover {
  background: var(--primary-color);
  transform: translateX(-50%) scale(1.1);
}

.expand-btn i {
  transition: transform 0.3s ease;
}

.expand-btn.active i {
  transform: rotate(180deg);
}

.guild-boss-content.collapse {
  display: none;
  padding: 1rem;
  background: rgba(20, 20, 25, 0.95);
}

.guild-boss-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 60%;
  overflow-y: auto;
}

/* Стили для build-set (аналогичные предыдущим) */
.build-set {
  margin-bottom: 1.2rem;
}

.build-set-title {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.build-set-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.build-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.build-item i {
  color: var(--primary-color);
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}

/* Стили для модального окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: linear-gradient(to bottom, #1a1a2e, #16213e);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-son {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close-son:hover {
  color: var(--primary-color);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.modal-character-son {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.modal-header-info h3 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.3rem;
}

.modal-subtitle {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.channel-btn {
  margin-bottom: 15px; /* Добавляем отступ снизу */
  margin-right: 15px;  /* Добавляем отступ справа */
}

/* Для мобильных устройств - уменьшаем отступы */
@media (max-width: 768px) {
  .channel-btn {
    margin-bottom: 10px;
    margin-right: 10px;
  }
}

/* Убираем жестко заданный margin-right у первой кнопки */
.channel-btn[style*="margin-right: 465px"] {
  margin-right: 15px !important;
}

/* Контейнер для кнопок - выравниваем по левому краю и добавляем flex-wrap */
.creator-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 20px;
}

/* Стили для горизонтального скролла */
.nav-scroll-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Скрываем скроллбар в Firefox */
  margin: 0 15px;
}

.nav-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Скрываем скроллбар в Chrome/Safari */
}

.nav-menu {
  display: flex;
  white-space: nowrap;
  padding: 5px 0;
  gap: 15px;
}

/* Стили для мобильного меню (оставляем как было) */
@media (max-width: 992px) {
  .nav-scroll-wrapper {
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    padding: 80px 30px 30px;
    z-index: 1000;
  }
  
  .nav-toggle.active {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1001;
  }
}

/* Небольшие улучшения для навигации */
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(96, 165, 250, 0.1);
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(96, 165, 250, 0.1);
}

/* Сдвигаем логотип влево и уменьшаем отступы */
@media (min-width: 992px) {
  header.glass .logo {
    margin-right: auto; /* Прижимаем логотип к левому краю */
    padding-right: 50px; /* Отступ от меню */
  }
  .nav-menu {
    gap: 0.8rem; /* Уменьшаем расстояние между пунктами */
  }
  .nav-link {
    font-size: 0.9rem; /* Чуть меньше шрифт */
    padding: 0.4rem 0.6rem;
  }
  .nav-link i {
    font-size: 0.8rem; /* Уменьшаем иконки */
  }
}

/* Стили для групповых карточек отрядов */
.squad-card {
  background: linear-gradient(135deg, #2c2c54 0%, #1a1a2e 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border-left: 4px solid;
  margin-bottom: 25px;
}

.squad-card:hover {
  transform: translateY(-5px);
}

.squad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.squad-header h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
}

.element-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.squad-members {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.squad-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
}

.squad-member img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.squad-member img:hover {
  transform: scale(1.1);
}

.squad-member span {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}

.member-role {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-top: 5px;
}

.squad-stats {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.squad-stats span {
  color: #ddd;
  font-size: 0.85rem;
}

.squad-stats i {
  margin-right: 5px;
}

.btn-squad-details {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #6a5acd 0%, #4b0082 100%);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-squad-details:hover {
  background: linear-gradient(90deg, #4b0082 0%, #6a5acd 100%);
  box-shadow: 0 0 10px rgba(106, 90, 205, 0.7);
}

/* Цвета границ для разных отрядов */
.squad-card[data-element="group"]:nth-child(1) { border-left-color: #ff4d4d; } /* Огонь */
.squad-card[data-element="group"]:nth-child(2) { border-left-color: #4de06a; } /* Ветер */
.squad-card[data-element="group"]:nth-child(3) { border-left-color: #e0d84d; } /* Свет */
.squad-card[data-element="group"]:nth-child(4) { border-left-color: #4d9de0; } /* Вода */
.squad-card[data-element="group"]:nth-child(5) { border-left-color: #a24de0; } /* Тьма */


/* Добавим в конец файла styles.css */

/* Стили для кнопки фильтра "Отряды" */
.filter-btn[data-filter="group"] {
  background: linear-gradient(45deg, #8b5cf6, #3b82f6);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.filter-btn[data-filter="group"]::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite;
}

.filter-btn[data-filter="group"]:hover {
  background: linear-gradient(45deg, #7c3aed, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Стили для карточек отрядов */
.squad-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: none; /* По умолчанию скрыты */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.squad-card.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.squad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.squad-header h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin: 0;
}

.element-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.element-badge.fire { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.element-badge.water { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.element-badge.wind { background: rgba(34, 211, 238, 0.2); color: #22d3ee; }
.element-badge.light { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.element-badge.shadow { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }

.squad-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.squad-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.squad-member img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.squad-member span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

.member-role {
  font-size: 0.75rem;
  background: rgba(96, 165, 250, 0.1);
  color: var(--primary-color);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
}

.squad-stats {
  display: flex;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.squad-stats i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Анимация при появлении отрядов */
@keyframes squadAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Для светлой темы */
.light-theme .squad-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .squad-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .squad-member img {
  border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .squad-members {
    grid-template-columns: 1fr;
  }
  
  .squad-member {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }
  
  .squad-member img {
    margin-bottom: 0;
  }
  
  .member-role {
    margin-left: auto;
  }
}

/* Адаптация модального окна для мобильных устройств */
@media (max-width: 768px) {
  .modal-content {
    width: 95vw; /* Почти вся ширина экрана */
    max-width: 100%;
    height: 95vh; /* Почти вся высота экрана */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
  }

  .modal-character h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .modal-character-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .modal-character-class {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .book-container {
    font-size: 0.9rem;
  }

  .book-page h4 {
    font-size: 1.2rem;
    margin-top: 1rem;
  }

  .stats-grid,
  .constellation-scroll {
    font-size: 0.85rem;
  }

  .book-navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .book-nav-btn {
    background: rgba(96, 165, 250, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .book-nav-btn:hover {
    background: rgba(96, 165, 250, 0.4);
  }

  .page-counter {
    font-size: 0.9rem;
  }

  /* Ограничение высоты созвездий и добавление прокрутки */
  .constellation-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
  }

  .constellation-scroll::-webkit-scrollbar {
    width: 4px;
  }

  .constellation-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
  }
}

/* Модальное окно для мобильных */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: 95%;
    height: 95vh;
    max-height: 95vh;
    margin: 0;
    border-radius: 12px 12px 0 0;
    position: fixed;
    bottom: 0;
  }

  .modal-body {
    padding: 1.5rem;
    height: calc(100% - 3rem);
    overflow-y: auto;
  }

  .book-container {
    min-height: auto;
    height: calc(100% - 100px);
  }

  .book-page {
    position: relative;
    height: auto;
    min-height: 100%;
    padding-bottom: 60px; /* Место для навигации */
  }

  .book-navigation {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    padding: 10px;
    border-radius: 12px;
    margin: 0 20px;
    backdrop-filter: blur(10px);
  }
}

/* Общие стили для модального окна */
.modal-content {
  width: 100%;
  max-width: 800px;
  max-height: 95vh;
  overflow-y: auto;
}

.modal-body {
  padding: 2rem;
  color: var(--text-color);
}

.book-container {
  position: relative;
  min-height: 500px;
  margin-bottom: 2.5rem;
}

/* Основной контейнер контента */
.book-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  padding-bottom: 100px; /* Оставляем место для навигации */
  margin-bottom: 20px; /* Компенсируем отступ */
}

.book-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s ease;
}

.book-page.active {
  opacity: 1;
  transform: translateX(0);
}

.book-page.prev {
  transform: translateX(-100%);
}

.constellation-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Навигация */
.book-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}

.book-nav-btn {
  background: rgba(96, 165, 250, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-nav-btn:hover {
  background: var(--primary-color);
  color: white;
}

.book-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(96, 165, 250, 0.1);
}

.page-counter {
  font-weight: 600;
  color: var(--text-color);
  min-width: 60px;
  text-align: center;
}

/* Мобильные стили для вкладки с оружием */
@media (max-width: 768px) {
  .guide-tabs .tabs-header {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  
  .guide-tabs .tab-btn {
    flex: none;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .weapons-grid.jinwoo-combos {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .weapon-pair {
    display: contents;
  }
  
  .weapon-pair-header {
    grid-column: 1;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
  }
  
  .weapon-card {
    flex-direction: column;
    height: auto;
  }
  
  .weapon-image {
    height: 180px;
  }
  
  .weapon-info {
    padding: 1.2rem;
  }
  
  .weapon-info h4 {
    font-size: 1.2rem;
  }
  
  .weapon-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .weapon-stats {
    font-size: 0.8rem;
  }
  
  .character-tier {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    top: 10px;
    right: 10px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .weapons-grid.jinwoo-combos {
    gap: 1rem;
  }
  
  .weapon-image {
    height: 150px;
  }
  
  .weapon-info {
    padding: 1rem;
  }
  
  .weapon-info h4 {
    font-size: 1.1rem;
  }
  
  .weapon-element, 
  .weapon-type {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }
  
  .tab-btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

/* Исправление для Firefox Mobile */
@-moz-document url-prefix() {
  @media (max-width: 767px) {
    .weapon-card {
      padding: 0.8rem;
    }
    
    .weapon-image {
      height: 130px;
    }
    
    .weapon-info h4 {
      font-size: 1rem;
    }
    
    .weapon-stats {
      font-size: 0.75rem;
    }
  }
}

/* Общие улучшения для мобильных */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  section {
    padding-top: 3rem;
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .tab-pane {
    padding: 1rem;
  }
}

/* Галерея оружия - вертикальный скролл вместо переноса */
@media (max-width: 768px) {
  .weapons-grid.jinwoo-combos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .weapon-pair-header {
    text-align: center;
    margin-top: 1rem;
  }
  
  .weapon-card {
    margin-bottom: 1rem;
  }
}

/* Version Update Notification Styles */
.version-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--primary-color);
  transform: translateX(150%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 400px;
}

.light-theme .version-toast {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-color);
}

.version-toast.active {
  transform: translateX(0);
}

.version-toast-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.version-toast-content {
  flex: 1;
}

.version-toast h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 700;
}

.version-toast p {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(96, 165, 250, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0.3rem 0;
}

.version-toast-close {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.light-theme .version-toast-close {
  color: rgba(30, 41, 59, 0.7);
}

.version-toast-close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.version-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.light-theme .version-toast-progress {
  background: rgba(0, 0, 0, 0.1);
}

.version-toast-progress:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 0 0 12px 12px;
  animation: progress 10s linear forwards;
}

@keyframes progress {
  0% { width: 100%; }
  100% { width: 0%; }
}

/* Update Button */
.version-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.version-update-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.version-update-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.version-update-btn:hover i {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  .version-toast {
    bottom: 20px;
    right: 20px;
    max-width: calc(100% - 40px);
  }
}

/* Дополнительные стили для changelog */
.version-changelog {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  max-height: 150px;
  overflow-y: auto;
}

.light-theme .version-changelog {
  background: rgba(0, 0, 0, 0.05);
}

.version-changelog-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.version-changelog-content {
  font-size: 0.85rem;
  line-height: 1.4;
}

.version-release-date {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}


/* Общие стили для карточек отрядов */
.squad-card {
  background: linear-gradient(135deg, #2c2c54 0%, #1a1a2e 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border-left: 4px solid;
  margin-bottom: 25px;
  width: 100%;
}

.squad-card:hover {
  transform: translateY(-5px);
}

.squad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.squad-header h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
}

.element-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Стили для списка участников */
.squad-members {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.squad-member {
  display: flex;
  align-items: center;
  gap: 15px;
}

.squad-member img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid;
  transition: transform 0.3s ease;
}

.squad-member img:hover {
  transform: scale(1.1);
}

.squad-member-info {
  flex: 1;
}

.squad-member span {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  display: block;
  margin-bottom: 5px;
}

.member-role {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.squad-stats {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.squad-stats span {
  color: #ddd;
  font-size: 0.9rem;
}

.squad-stats i {
  margin-right: 5px;
}

/* Цвета границ для разных отрядов */
.squad-card[data-element="group"]:nth-child(1) { 
  border-left-color: #ff4d4d; /* Огонь */
}
.squad-card[data-element="group"]:nth-child(2) { 
  border-left-color: #4de06a; /* Ветер */
}
.squad-card[data-element="group"]:nth-child(3) { 
  border-left-color: #e0d84d; /* Свет */
}
.squad-card[data-element="group"]:nth-child(4) { 
  border-left-color: #4d9de0; /* Вода */
}
.squad-card[data-element="group"]:nth-child(5) { 
  border-left-color: #a24de0; /* Тьма */
}

/* Цвета значков элементов */
.element-badge.fire { 
  background: rgba(249, 115, 22, 0.2); 
  color: #f97316; 
}
.element-badge.water { 
  background: rgba(59, 130, 246, 0.2); 
  color: #3b82f6; 
}
.element-badge.wind { 
  background: rgba(34, 211, 238, 0.2); 
  color: #22d3ee; 
}
.element-badge.light { 
  background: rgba(234, 179, 8, 0.2); 
  color: #eab308; 
}
.element-badge.shadow { 
  background: rgba(139, 92, 246, 0.2); 
  color: #8b5cf6; 
}

/* Адаптация для планшетов */
@media (min-width: 600px) {
  .squad-members {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .squad-member {
    flex-direction: column;
    width: 30%;
    text-align: center;
  }
  
  .squad-member-info {
    width: 100%;
  }
  
}

/* Скрывает .member-role на экранах до 600px */
@media (max-width: 700px) {
  .member-role {
    display: none;
  }
}

/* === Стили для длинных промокодов и кнопки копирования === */

.promo-code {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 14px;
  word-break: break-all; /* Разбивает очень длинные строки */
  white-space: pre-wrap; /* Сохраняет пробелы и переносит по словам */
}

.code-text {
  flex-grow: 1;
  overflow-wrap: break-word; /* Перенос слов при необходимости */
}

.copy-btn {
  background: rgba(96, 165, 250, 0.2);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(96, 165, 250, 0.4);
}

.copy-icon,
.check-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.check-icon {
  opacity: 0;
  color: var(--success-color, #4caf50);
}

.copy-btn.copied .copy-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

.copy-btn.copied .check-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

/* Предрегистрация */
.hero-top-link {
  position: absolute;
  top: 80px;
  right: 10px;
  z-index: 999;
  width: 250px;
  height: 250px;
}

.hero-top-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .hero-top-link {
      width: 150px;
      height: 150px;
      top: 80px;
      right: 10px;
  }
}

@media (max-width: 768px) {
  /* Отключаем сложные анимации на мобильных */
  .fade-in, 
  .weapon-card, 
  .character-card,
  .artifact-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  
  /* Упрощаем hover-эффекты */
  .weapon-card:hover, 
  .character-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}






.artifacts-container {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.artifact-column {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.artifact-column h5 {
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
  font-size: 16px;
}

.variant {
  padding: 5px 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .artifacts-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* Минималистичные стили для артефактов */
.artifacts-container {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.artifact-column {
  flex: 1;
}

.artifact-column h5 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
}

.artifact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.artifact-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.8rem;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.2s ease;
}

.light-theme .artifact-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.artifact-box:hover {
  background: rgba(96, 165, 250, 0.05);
}

/* Стили для разных типов артефактов */
.artifact-box.armor:nth-child(1)::before { content: "Шлем: "; font-weight: 600; }
.artifact-box.armor:nth-child(2)::before { content: "Нагрудник: "; font-weight: 600; }
.artifact-box.armor:nth-child(3)::before { content: "Перчатки: "; font-weight: 600; }
.artifact-box.armor:nth-child(4)::before { content: "Обувь: "; font-weight: 600; }

.artifact-box.jewelry:nth-child(1)::before { content: "Ожерелье: "; font-weight: 600; }
.artifact-box.jewelry:nth-child(2)::before { content: "Браслет: "; font-weight: 600; }
.artifact-box.jewelry:nth-child(3)::before { content: "Кольцо: "; font-weight: 600; }
.artifact-box.jewelry:nth-child(4)::before { content: "Серьги: "; font-weight: 600; }

/* Стили для вариантов с выбором */
.artifact-box.choice {
  padding-right: 2.5rem;
}

.artifact-switch {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.artifact-switch:hover {
  background: rgba(96, 165, 250, 0.2);
}

.artifact-switch i {
  font-size: 0.8rem;
  color: var(--primary-color);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .artifacts-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .artifact-box {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
  
  .artifact-switch {
    width: 22px;
    height: 22px;
  }
}

/* Анимация при переключении */
@keyframes artifactSwitch {
  0% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.artifact-box.choice {
  animation: artifactSwitch 0.3s ease-out;
}

/* === Основные стили с белым текстом === */
.artifact-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  color: white; /* Белый цвет текста */
}

.artifact-column h5 {
  margin: 0; /* Убираем стандартные отступы */
  font-size: 1.2rem;
  white-space: nowrap; /* Запрещаем перенос текста */
  color: white; /* Явно указываем белый цвет заголовка */
}

.artifact-switch-container {
  margin: 0; /* Убираем старые отступы */
  padding: 0;
  border: none;
  display: flex;
  justify-content: flex-end;
}

/* === Стили кнопки переключения === */
.artifact-switch-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  margin: 0;
  white-space: nowrap;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: white; /* Цвет текста кнопки */
  transition: all 0.3s ease;
}

.artifact-switch-btn:hover {
  background: rgba(96, 165, 250, 0.2);
  color: white; /* Сохраняем белый цвет при наведении */
}

/* === Адаптация для мобильных устройств === */
@media (max-width: 768px) {
  .artifact-column-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    color: white; /* Защита цвета на мобильных */
  }

  .artifact-switch-container {
    width: 100%;
    justify-content: flex-start;
  }

  .artifact-switch-btn {
    padding: 0.3rem 0.6rem;
    color: white;
  }
}

/* Стили для модального окна tier-листа */
.tier-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tier-info-modal.active {
  opacity: 1;
  visibility: visible;
}

.tier-info-modal-content {
  background: var(--background-color);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.light-theme .tier-info-modal-content {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tier-info-modal.active .tier-info-modal-content {
  transform: translateY(0);
}

.tier-info-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.light-theme .tier-info-modal-close {
  color: rgba(30, 41, 59, 0.7);
}

.tier-info-modal-close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.tier-info-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tier-info-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tier-info-header p {
  color: var(--text-color);
  opacity: 0.8;
}

.tier-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.tier-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.light-theme .tier-item {
  background: rgba(0, 0, 0, 0.05);
}

.tier-item:hover {
  background: rgba(96, 165, 250, 0.1);
}

.tier-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.tier-badge.ss-tier {
  background: linear-gradient(45deg, #f59e0b, #ef4444);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.tier-badge.splus-tier {
  background: linear-gradient(45deg, #8b5cf6, #3b82f6);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.tier-badge.s-tier {
  background: linear-gradient(45deg, #3b82f6, #22d3ee);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.tier-info {
  flex: 1;
}

.tier-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text-color);
}

.tier-info p {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.5;
}

/* Основные стили артефактов */
.artifacts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.artifact-column {
  position: relative;
}

.artifact-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.artifact-column h5 {
  margin: 0;
  font-size: 16px;
  color: white;
}

.toggle-all-variants {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--primary-color);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-all-variants:hover {
  background: rgba(96, 165, 250, 0.2);
}

.artifact-grid {
  display: grid;
  gap: 8px;
}

.artifact-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  position: relative;
}

.artifact-slot {
  font-weight: 600;
  color: var(--primary-color);
}

.artifact-variants {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: none;
}

.artifact-variants.show {
  display: block;
}

.variant {
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.8);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .artifacts-container {
    grid-template-columns: 1fr;
  }
  
  .artifact-item {
    padding: 8px;
  }
}

.artifact-switch-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  margin: 0;
  white-space: nowrap;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: white;
  transition: all 0.3s ease;
}

.artifact-switch-btn:hover {
  background: rgba(96, 165, 250, 0.2);
}

@media (max-width: 768px) {
  .artifact-column-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .artifact-switch-btn {
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 768px) {
  /* Модальное окно на мобильных */
  .tier-info-modal-content {
    width: 95%;
    padding: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  /* Контейнер артефактов */
  .artifacts-container {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Колонки артефактов */
  .artifact-column {
    padding: 0.5rem;
  }
  
  /* Заголовки колонок */
  .artifact-column h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  /* Сетка артефактов */
  .artifact-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Отдельные артефакты */
  .artifact-box {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  /* Уменьшаем псевдо-элементы с названиями слотов */
  .artifact-box.armor:nth-child(1)::before,
  .artifact-box.armor:nth-child(2)::before,
  .artifact-box.armor:nth-child(3)::before,
  .artifact-box.armor:nth-child(4)::before,
  .artifact-box.jewelry:nth-child(1)::before,
  .artifact-box.jewelry:nth-child(2)::before,
  .artifact-box.jewelry:nth-child(3)::before,
  .artifact-box.jewelry:nth-child(4)::before {
    font-size: 0.8rem;
  }
  
  /* Кнопки переключения */
  .artifact-switch {
    width: 20px;
    height: 20px;
  }
  
  /* Уменьшаем отступы в модальном окне */
  .book-page {
    padding: 0.5rem;
  }
  
  /* Специфичные стили для страницы артефактов */
  .book-page[data-page="2"] {
    padding: 0;
  }
  
  .book-page[data-page="2"] h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* Страница с артефактами */
  .book-page[data-page="2"] {
    overflow-x: auto; /* Горизонтальный скролл при необходимости */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    padding-bottom: 10px; /* Чтобы скролл не перекрывал контент */
  }
  
  /* Скрываем стандартный скроллбар */
  .book-page[data-page="2"]::-webkit-scrollbar {
    height: 5px;
  }
  
  /* Стилизуем скроллбар */
  .book-page[data-page="2"]::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
  }
  
  .book-page[data-page="2"]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }
}


/* Шапка с аватаркой */
.modal-character-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-character-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  flex-shrink: 0;
}

.modal-character-info {
  flex: 1;
}

.modal-character h3 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.modal-character-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}



/* Адаптация для мобильных */
@media (max-width: 768px) {
  .modal-character-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .modal-character-avatar {
    margin-bottom: 15px;
  }
  
  .modal-character-meta {
    justify-content: center;
  }
  
  
  .book-nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .book-container {
    padding-bottom: 100px;
    margin-bottom: -80px;
  }
  
  .book-navigation-wrapper {
    padding: 25px 0;
  }
  
  @supports (-webkit-touch-callout: none) {
    .book-container {
      padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    margin: 10px auto;
  }
  
  .book-container {
    padding-bottom: 240px; /* Еще больше места */
  }
  
  .book-content {
    max-height: calc(100vh - 300px); /* Увеличиваем область прокрутки */
    padding-right: 5px; /* Место для скроллбара */
  }

}

/* Обновленные стили для текста в карточках благословений */
.blessing-info p {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
  
  /* Улучшенные стили для читаемости */
  text-align: left;
  hyphens: auto; /* Перенос слов */
  word-break: break-word; /* Перенос длинных слов */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  padding: 0.5rem 0;
  margin: 0.5rem 0 1rem;
}

/* Стиль скроллбара */
.blessing-info p::-webkit-scrollbar {
  width: 6px;
}

.blessing-info p::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .blessing-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    padding-right: 5px;
    margin-bottom: 1rem;
  }
  
  .blessing-card {
    height: auto; /* Автоматическая высота на мобильных */
    min-height: 400px; /* Минимальная высота */
  }
  
  .blessing-image {
    height: 150px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .blessing-info p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .blessing-card {
    min-height: 380px;
  }
  
  .blessing-image {
    height: 120px;
  }
}

/* Улучшение отступов в карточках */
.blessing-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Равномерные отступы между элементами */
}

.blessing-info h4 {
  margin-bottom: 0.5rem; /* Уменьшенный отступ после заголовка */
}

/* Улучшение контейнера карточек */
.blessing-grid {
  gap: 1.5rem;
  padding: 0.5rem; /* Добавляем немного места по краям */
}

/* Обновленные стили для карточек благословений */
.blessing-card {
  height: 480px; /* Фиксированная высота для ПК */
  display: flex;
  flex-direction: column;
}

.blessing-image {
  height: 180px; /* Уменьшаем высоту изображения */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.blessing-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.blessing-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  padding-top: 1rem;
}

.blessing-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.blessing-info p {
  flex: 1;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
  margin-bottom: 1rem;
  padding-right: 8px;
  hyphens: auto;
  word-break: break-word;
}

/* Красивая полоса прокрутки */
.blessing-info p::-webkit-scrollbar {
  width: 4px;
}

.blessing-info p::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

.blessing-rarity {
  margin-top: auto;
  align-self: flex-start;
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
  .blessing-card {
    height: 460px;
  }
  
  .blessing-image {
    height: 160px;
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .blessing-card {
    height: auto;
    min-height: 420px;
  }
  
  .blessing-info p {
    font-size: 0.9rem;
    max-height: 150px; /* Ограничиваем высоту текста */
  }
  
  .blessing-image {
    height: 140px;
  }
}

/* Для маленьких экранов */
@media (max-width: 480px) {
  .blessing-card {
    min-height: 380px;
  }
  
  .blessing-image {
    height: 120px;
  }
  
  .blessing-info {
    padding: 1.2rem;
  }
}
:root {
  --system-blue: #60a5fa;
  --system-glow: 0 0 6px #60a5fa, 0 0 12px #60a5fa;
  --system-bg: rgba(15, 23, 42, 0.85);
  --system-border: rgba(96, 165, 250, 0.25);
}

body {
  background: linear-gradient(to bottom, #0f172a, #1e293b);
  color: #e5e7eb;
  font-family: 'Orbitron', sans-serif;
}

.system-window {
  background: var(--system-bg);
  border: 2px solid var(--system-border);
  border-radius: 14px;
  box-shadow: var(--system-glow);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.system-title {
  color: #93c5fd;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: var(--system-glow);
}

.system-button {
  background: transparent;
  color: #60a5fa;
  border: 2px solid #60a5fa;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 8px;
  transition: 0.3s ease;
}

.system-button:hover {
  background: rgba(96, 165, 250, 0.15);
  box-shadow: var(--system-glow);
}

.glow-box {
  border: 1px solid var(--system-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: inset 0 0 10px rgba(96, 165, 250, 0.2);
  background: rgba(255, 255, 255, 0.02);
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: auto; /* Изменено с hidden на auto */
}

.modal.active {
  display: flex;
}

.modal-body {
  width: 100%;
  max-width: 850px;
  height: auto;
  max-height: 95vh;
  overflow-y: auto; /* Добавлено для скролла на мобильных */
  position: relative;
  box-sizing: border-box;
  padding: 20px; /* Добавлено для отступов на мобильных */
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  .modal-body {
    max-height: 90vh;
    margin: 20px; /* Добавляем отступы от краев экрана */
  }
  
  .modal-character-header {
    flex-direction: column;
    text-align: center;
  }
  
  .book-page {
    padding-right: 0;
    overflow-y: auto;
  }
  
  .artifact-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}


.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: #93c5fd;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  font-family: 'Orbitron', sans-serif;
}

.modal-character-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.modal-character-avatar {
  width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

.modal-character-info h3 {
  color: #93c5fd;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.modal-character-meta span {
  display: inline-block;
  background: rgba(96, 165, 250, 0.2);
  padding: 0.3rem 0.7rem;
  margin-right: 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  color: #e0f2fe;
  font-size: 0.9rem;
}

.book-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-page {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding-right: 1rem;
  box-sizing: border-box;
}

.book-page.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.constellation-scroll {
  max-height: 100%;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

.artifact-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-align: center;
  color: #e0f2fe;
  font-weight: bold;
  font-size: 0.9rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  transition: 0.2s ease;
}

.artifact-switch-btn {
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  border: 1px solid #60a5fa;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.artifact-switch-btn:hover {
  background: rgba(96, 165, 250, 0.25);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.book-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1rem;
}

.book-nav-btn {
  background: transparent;
  border: none;
  color: #60a5fa;
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.book-nav-btn:disabled {
  color: #4b5563;
  cursor: default;
}

.page-counter {
  font-size: 0.95rem;
  color: #9ca3af;
}

/* Кастомный Scrollbar */
.book-page::-webkit-scrollbar,
.constellation-scroll::-webkit-scrollbar {
  width: 8px;
}

.book-page::-webkit-scrollbar-track,
.constellation-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.book-page::-webkit-scrollbar-thumb,
.constellation-scroll::-webkit-scrollbar-thumb {
  background: #60a5fa;
  border-radius: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-body {
  overflow: hidden; /* было auto */
}


.constellation-scroll {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.modal-body,
.modal-character {
  overflow: hidden;
}


/* Удаляем двойной скролл на 5 странице */
.constellation-scroll {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.modal-content{
  display: hidden;
}

.artifact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.artifact-switch-container {
  margin-top: 12px;
  text-align: right;
}

.artifact-switch-btn {
  background: transparent;
  border: 2px solid #60a5fa;
  color: #60a5fa;
  padding: 0.4rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.artifact-switch-btn:hover {
  background: #60a5fa;
  color: #0f172a;
  box-shadow: 0 0 12px #60a5fa;
}

.artifact-switch-btn i {
  font-size: 1rem;
}

.book-page,
.constellation-scroll {
  scrollbar-width: thin;
  scrollbar-color: #60a5fa transparent;
}

/* Для браузеров на базе WebKit (Chrome, Safari, Edge) */
.book-page::-webkit-scrollbar,
.constellation-scroll::-webkit-scrollbar {
  width: 8px;
}

.book-page::-webkit-scrollbar-track,
.constellation-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.book-page::-webkit-scrollbar-thumb,
.constellation-scroll::-webkit-scrollbar-thumb {
  background-color: #60a5fa;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color 0.3s ease;
}

.book-page::-webkit-scrollbar-thumb:hover,
.constellation-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #3b82f6;
}


.promo-codes-card {
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(96, 165, 250, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.5);
  font-family: 'Orbitron', sans-serif;
  color: #93c5fd;
  max-width: 400px;
  margin: 1rem auto;
}

.promo-codes-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.promo-code-item {
  background: rgba(96, 165, 250, 0.1);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-code-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.promo-code-info {
  font-size: 0.85rem;
  color: #dbeafe;
  text-align: right;
}

/* Планшеты */
@media (max-width: 1024px) {
  .modal-body {
    max-width: 90vw;
    padding: 1rem;
  }
  
  .promo-codes-card {
    max-width: 90vw;
    margin: 1rem auto;
  }
}

/* Смартфоны */
@media (max-width: 600px) {
  .modal-character-header {
    flex-direction: column;
    align-items: center;
  }

  .modal-character-avatar {
    width: 90px;
    margin-bottom: 1rem;
  }

  .artifact-grid {
    grid-template-columns: 1fr; /* 1 в ряд на мобильных */
  }

  .promo-code-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-code-info {
    text-align: left;
    margin-top: 0.3rem;
    font-size: 0.8rem;
  }
  
  .system-button {
    width: 100%;
    text-align: center;
  }
}


.typed-letter {
  display: inline-block;
  position: relative;
  transition: transform 0.1s ease;
  transform-origin: center;
}

/* Анимации для ошибок */
@keyframes letterShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.typing-error {
  animation: letterShake 0.4s ease;
  color: #ff6b6b;
}


.hero-title, .title-word {
  opacity: 1 !important;
  visibility: visible !important;
}

#typing-cursor {
  /* Дублируем стили для надежности */
  display: inline-block !important;
  background: white !important;
  animation: blink 0.7s step-end infinite !important;
}

.typewriter-wrapper {
  display: none;
}


@media (max-width: 768px) {
  .modal-body {
    padding: 15px;
  }

  .book-page {
    flex: 1;
    overflow-y: auto; /* Скролл текста внутри страницы */
    padding-bottom: 50px; /* Большой отступ, чтобы контент не обрезался */
    margin-bottom: 20px; /* Дополнительное место для скролла */
  }

  /* Убираем фиксированные высоты */
  .constellation-scroll,
  .book-container {
    max-height: none !important;
    overflow: visible !important;
  }
  /* Принудительно растягиваем последний элемент */
  .book-page::after {
    content: "";
    display: block;
    height: 100px; /* Дополнительное пространство для скролла */
    width: 100%;
  }
}



/* Более заметный скроллбар */
::-webkit-scrollbar {
  width: 8px; /* Толщина */
}

::-webkit-scrollbar-thumb {
  background: var(--system-blue);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}



/* === Современные стили карточек персонажей (охотников) === */
.character-card {
  position: relative;
  background: var(--card-background, rgba(30, 41, 59, 0.6));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform-origin: center;
}

.character-card:hover {
  transform: scale(1.025);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--element-glow, rgba(255, 255, 255, 0.1));
}

/* Блеск при наведении */
.character-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translateX(-100%) rotate(25deg);
  opacity: 0;
  pointer-events: none;
}

.character-card:hover::after {
  animation: shine-sweep 1s ease-out forwards;
  opacity: 1;
}

@keyframes shine-sweep {
  0% {
    transform: translateX(-100%) rotate(25deg);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(100%) rotate(25deg);
    opacity: 0;
  }
}

/* === Изображение персонажа === */
.character-image {
  height: 260px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(17, 24, 39, 0.95));
  overflow: hidden;
  position: relative;
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.95);
}

.character-card:hover .character-image img {
  transform: scale(1.06);
}

/* === Информация === */
.character-info {
  padding: 1.8rem;
  color: var(--text-color, #f1f5f9);
}

.character-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* === Класс персонажа === */
.character-class {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
}

/* Классы по элементу */
.fire-element .character-class {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.4);
}

.shadow-element .character-class {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.4);
}

/* === Статы === */
.character-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.character-stats span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  color: var(--text-color);
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.character-stats span:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* === Кнопка Подробнее === */
.btn-more {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(37, 99, 235, 0.25));
  color: var(--primary-color, #60a5fa);
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  backdrop-filter: blur(6px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.btn-more:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.4), rgba(37, 99, 235, 0.4));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* === Светлая тема === */
.light-theme .character-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.light-theme .character-stats span {
  background: rgba(0, 0, 0, 0.04);
}

.light-theme .btn-more {
  color: var(--secondary-color, #2563eb);
}




/* Карточки отрядов по умолчанию скрыты */
.squad-card {
  display: none;
  width: 100%;
  max-width: 380px;
  margin: 1.5rem auto;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* Показываем карточки отрядов, если у контейнера есть класс show-squads */
.show-squads .squad-card {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.4s ease;
}

.squad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.squad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.squad-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
  font-family: 'Orbitron', sans-serif;
  margin: 0;
}

.element-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.squad-members {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.015);
}

.squad-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.squad-member img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.squad-member:hover img {
  transform: scale(1.05);
}

.squad-member span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9fafb;
  font-family: 'Orbitron', sans-serif;
}

.member-role {
  font-size: 0.75rem;
  font-weight: 500;
  color: #cbd5e1;
  opacity: 0.8;
}

.squad-stats {
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.squad-stats i {
  color: #8b5cf6;
}

/* --- Адаптив на телефон --- */
@media (max-width: 480px) {
  .show-squads .squad-card {
    max-width: 100%;
    margin: 1rem 0;
  }

  .squad-members {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.8rem;
  }

  .squad-member img {
    width: 60px;
    height: 60px;
  }

  .squad-member span {
    font-size: 0.85rem;
  }

  .member-role {
    font-size: 0.7rem;
  }

  .squad-header h3 {
    font-size: 1.1rem;
  }

  .squad-stats {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}



/* по умолчанию все скрыты */
.squad-card {
  display: none;
}

/* показываем, если выбран фильтр "Все" */
#filter-all:checked ~ .cards-container .squad-card {
  display: block;
}

/* показываем, если выбран фильтр "Отряды" */
#filter-group:checked ~ .cards-container .squad-card {
  display: flex;
}












.weapon-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 2px transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.weapon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 0 12px var(--primary-color);
}

/* Область изображения */
.weapon-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.weapon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.weapon-card:hover .weapon-image img {
  transform: scale(1.05);
}

/* Значок ранга */
.character-tier {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #1e1e1e;
  font-weight: 700;
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
  text-transform: uppercase;
}

/* Информация */
.weapon-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.weapon-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #f3f4f6;
}

.weapon-element,
.weapon-type {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: #a1a1aa;
  gap: 0.5rem;
}

.weapon-info p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.weapon-stats {
  font-size: 0.8rem;
  color: #facc15;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Элементные свечения */
.weapon-card.shadow-element {
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.weapon-card.light-element {
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3);
}

.weapon-card.fire-element {
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.3);
}

.weapon-card.wind-element {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.3);
}

/* Адаптив */
@media (max-width: 480px) {
  .weapon-image {
    height: 140px;
  }

  .weapon-info {
    padding: 0.75rem;
  }

  .weapon-info h4 {
    font-size: 0.95rem;
  }

  .weapon-info p,
  .weapon-element,
  .weapon-type {
    font-size: 0.8rem;
  }

  .weapon-stats {
    font-size: 0.75rem;
  }

  .character-tier {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

.weapon-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, box-shadow;
  perspective: 1000px;
  overflow: hidden;
  position: relative;
}

.weapon-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 12px var(--primary-color);
}

/* Анимация изображения */
.weapon-card .weapon-image img {
  transition: transform 0.5s ease;
  transform-origin: center;
}

.weapon-card:hover .weapon-image img {
  transform: scale(1.08);
}

/* Анимация заголовка */
.weapon-info h4 {
  transition: transform 0.4s ease, color 0.3s ease;
}

.weapon-card:hover .weapon-info h4 {
  transform: translateY(-2px);
  color: var(--primary-color);
}

/* Анимация описания */
.weapon-info p {
  transition: color 0.3s ease;
}

.weapon-card:hover .weapon-info p {
  color: #ffffffd0;
}

/* Glow эффект по элементу (если нужен) */
.weapon-card.light-element:hover {
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.5), 0 0 60px rgba(234, 179, 8, 0.2);
}

.weapon-card.shadow-element:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.2);
}

.weapon-card.fire-element:hover {
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.5), 0 0 60px rgba(251, 146, 60, 0.2);
}

.weapon-card.wind-element:hover {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.5), 0 0 60px rgba(34, 211, 238, 0.2);
}

/* Кнопка закрытия модалки */
.modal-close-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  width: auto;
  align-self: flex-end;
  user-select: none;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.modal-close-btn:hover {
  background: var(--secondary-color);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6);
  transform: translateY(-4px) scale(1.05);
}

.modal-close-btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Крестик закрытия модалки */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color var(--transition), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  will-change: transform, color;
}

.light-theme .modal-close {
  color: rgba(30, 41, 59, 0.7);
  background: rgba(30, 41, 59, 0.1);
  box-shadow: 0 2px 6px rgba(30,41,59,0.2);
}

.modal-close:hover {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.15);
}

.modal-close:active {
  background: rgba(37, 99, 235, 0.25);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.weapon-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.weapon-modal.active {
  display: flex;
}

.weapon-modal-content {
  width: 95%;               /* Адаптивно под ширину экрана */
  max-width: 600px;         /* Ограничение на больших экранах */
  max-height: 90vh;         /* Ограничение по высоте */
  background: var(--background-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: 90vh; /* Make the body scrollable if content is too tall */
}


@media (max-width: 600px) {
  .modal-body {
    padding: 1.2rem;
  }

  .weapon-modal-content {
    max-height: 95vh;
  }
}


/* html, body, * {
    cursor: none !important; 
}

.custom-cursor {
    position: fixed;
    width: 22px;  
    height: 22px;
    background-image: url('images/other/custom-cursor.webp');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; 
    z-index: 9999;
    will-change: transform;
    transform: translate(100%, 100%); 
    display: none; 
}

.custom-cursor {
    transition: opacity 0.3s;
}

.custom-cursor.hidden {
    opacity: 0;
} */




.artifact-switch-container.shared {
  margin-top: 1rem;
  text-align: center;
}


/* Сетка — карточки на одной высоте */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* Каждая карточка как flex-колонка */
.character-card {
  display: flex;
  flex-direction: column;
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

/* Контейнер с текстом — растягивается */
.character-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem;
}

/* Кнопка всегда уходит вниз */
.character-info .btn-more {
  margin-top: auto;
}

.artifact-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.squads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* или 4 — если хочешь 4 в ряд */
  gap: 1.5rem;
  margin-top: 2rem;
}

.squad-card {
  display: block; /* ВАЖНО: не flex, не inline-block */
  width: 100%;
  box-sizing: border-box;
  background: var(--card-background, #1d1d1d);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}













/* === MODAL CHARACTER MODERN === */
.modal-character-modern {
  padding: 1rem;
  color: var(--text-color);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-character-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-character-avatar {
  max-width: 180px;
  width: 100%;
  border-radius: 12px;
  margin: 0 auto 1rem;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

.modal-info-box {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-weight: 600;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.modal-character-tier,
.modal-character-role {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.modal-character-description {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Страницы */
.book-page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.book-page.active {
  display: block;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

/* Артефакты */
.artifact-layout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.artifact-column {
  flex: 1;
  min-width: 150px;
}

.artifact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.artifact-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.artifact-box.armor {
  border-left: 4px solid #3b82f6;
}

.artifact-box.jewelry {
  border-left: 4px solid #eab308;
}

.artifact-switch-container {
  margin-top: 0.5rem;
  text-align: center;
}

.artifact-switch-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: var(--text-color);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.artifact-switch-btn:hover {
  background: rgba(96, 165, 250, 0.2);
}

/* Навигация */
.book-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.book-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.book-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-counter {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Созвездие */
.constellation-scroll {
  overflow-y: auto;
  max-height: 300px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes artifactSwitch {
  0% {
    transform: scale(1);
    background: rgba(96, 165, 250, 0.3);
  }
  100% {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
  }
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  .artifact-layout {
    flex-direction: column;
    align-items: center;
  }

  .artifact-column {
    width: 100%;
  }

  .artifact-box {
    flex: 1 1 45%;
  }

  .modal-character-avatar {
    max-width: 140px;
  }
}


/* Nuclei Page */
.nuclei-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.nucleus-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
  transition: transform 0.3s ease;
}

.nucleus-image:hover {
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .nucleus-image {
    width: 80px;
    height: 80px;
  }
}


/* Оружие (1 картинка + название) */
.weapon-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.modal-weapon-image {
  width: 360px;
  height: 360px;
  object-fit: contain;
  margin-bottom: 15px;
}

.weapon-name {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #e0e0e0;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}












/* Только адаптация размера для мобильных */
@media (max-width: 768px) {
  .modal-body {
    max-width: 100%; /* Чуть уже на мобильных */
    max-height: auto; /* Чуть меньше высота */

  }

}

@media (max-width: 480px) {
  .modal-body {
    max-width: 94%; /* Еще чуть уже на маленьких экранах */
    padding: 15px; /* Чуть меньше внутренние отступы */
  }
}



/* 2. Настраиваем модальное окно */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto; /* Разрешаем скролл только для модального окна */
}

/* 3. Настраиваем тело модального окна */
.modal-body {
  width: 100%;
  max-width: 850px;
  max-height: 90vh; /* Чуть уменьшаем высоту */
  margin: 20px auto;
  overflow-y: visible; /* Убираем внутренний скролл */
  position: relative;
  box-sizing: border-box;
  padding: 20px;
}

/* 4. Делаем контент прокручиваемым */
.modal-content {
  max-height: calc(90vh - 40px); /* Учитываем padding */
  overflow-y: auto;
  scrollbar-width: thin; /* Тонкий скроллбар в Firefox */
}

/* 5. Кастомизируем скроллбар (опционально) */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #60a5fa;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}




/* 1. Убираем скролл у основного контейнера модального окна */
.modal {
  position: fixed;
  overflow: hidden; /* Главное правило - запрещаем скролл */
}

/* 2. Делаем контент модального окна прокручиваемым БЕЗ видимого скроллбара */
.modal-content {
  overflow-y: auto; /* Разрешаем скролл */
  -ms-overflow-style: none;  /* IE и Edge */
  scrollbar-width: none;  /* Firefox */
}

/* 3. Скрываем скроллбар для WebKit браузеров */
.modal-content::-webkit-scrollbar {
  display: none;
}

/* 4. Для внутреннего контента (если нужно оставить его скролл) */
.modal-character-modern {
  overflow: visible; /* Убираем лишние скроллы */
}

.modal-body {
  overflow: visible; /* Убираем лишние скроллы */
}

/* 5. Настраиваем скролл только для нужных элементов */
.book-page.active,
.constellation-scroll {
  overflow-y: auto; /* Скролл только здесь */
  scrollbar-width: thin; /* Тонкий скролл */
}

/* 6. Кастомизация скроллбара (опционально) */
.book-page.active::-webkit-scrollbar {
  width: 4px;
}



/* Настройки для book-page с точным контролем скролла */
.book-page.active {
  overflow-y: auto;
  max-height: calc(100% - 60px); /* Учитываем место для навигации */
  padding-bottom: 20px; /* Дополнительный отступ */
  
  /* Фиксируем скролл только для контента */
  scroll-snap-type: y proximity;
}

/* Убираем лишнее пространство для скролла */
.book-page.active::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: -20px; /* Компенсируем padding-bottom */
  visibility: hidden;
}

/* Точная настройка скроллбара */
.book-page.active::-webkit-scrollbar {
  width: 4px; /* Еще тоньше скроллбар */
}

.book-page.active::-webkit-scrollbar-thumb {
  background: #60a5fa;
  border-radius: 2px;
}

/* Для Firefox */
.book-page.active {
  scrollbar-width: thin;
  scrollbar-color: #60a5fa transparent;
}

/* Особые настройки для мобильных */
@media (max-width: 768px) {
  .book-page.active {
    max-height: calc(100vh - 120px); /* Подстраиваем под экран */
    overscroll-behavior-y: contain; /* Предотвращаем "перетягивание" */
  }
  
}


.weapon-modal-constellations {
  max-height: 300px; /* Или любая другая подходящая высота */
  overflow-y: auto; /* Автоматический скролл при переполнении */
  padding: 10px;
  margin-top: 15px;
  
  /* Кастомизация скроллбара */
  scrollbar-width: thin; /* Для Firefox */
  scrollbar-color: #60a5fa rgba(96, 165, 250, 0.1); /* Для Firefox */
}

/* Стили для WebKit (Chrome, Safari) */
.weapon-modal-constellations::-webkit-scrollbar {
  width: 6px;
}

.weapon-modal-constellations::-webkit-scrollbar-thumb {
  background-color: #60a5fa;
  border-radius: 3px;
}

.weapon-modal-constellations::-webkit-scrollbar-track {
  background: rgba(96, 165, 250, 0.1);
  border-radius: 3px;
}

/* Для IE/Edge */
.weapon-modal-constellations {
  -ms-overflow-style: auto;
}

/* Стили для пустого состояния */
.weapon-modal-constellations:empty {
  display: none;
}

/* Гарантируем очистку изображений */
.modal-weapon-image[src=""] {
  opacity: 0;
  height: 0;
}


/* Базовые стили виртуализации */
.virtual-placeholder {
  background: linear-gradient(110deg, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
  border-radius: 4px;
  overflow: hidden;
}

@keyframes shine {
  to { background-position-x: -200%; }
}

.virtual-loaded {
  animation: virtual-fadeIn 0.4s ease-out;
}

@keyframes virtual-fadeIn {
  from { opacity: 0.5; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Основные стили модального окна - стеклянный морфизм */
.tier-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-info-modal.active {
  display: flex;
  opacity: 1;
}

/* Контент модального окна - неоморфный дизайн */
.tier-info-modal-content {
  position: relative;
  background: rgba(26, 32, 44, 0.85);
  border-radius: 24px;
  width: 100%;
  max-width: 850px;
  padding: 40px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-info-modal.active .tier-info-modal-content {
  transform: scale(1);
}

/* Кнопка закрытия - футуристичный стиль */
.tier-info-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tier-info-modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Заголовок с градиентным текстом */
.tier-info-header {
  text-align: center;
  margin-bottom: 40px;
}

.tier-info-header h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

.tier-info-header p {
  color: #a0aec0;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Контейнер тир-листа с анимированным фоном */
.tier-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.tier-list-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
  animation: rotateGradient 20s linear infinite;
  z-index: -1;
}

@keyframes rotateGradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Элементы тир-листа - 3D эффекты */
.tier-item {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 50%);
  transform: translateX(-100%);
}


/* Информация о тире */
.tier-info h4 {
  color: #e2e8f0;
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.tier-info p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}


/* Модальное окно изображений - премиальный стиль */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10001;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.image-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(239, 68, 68, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Блокировка скролла с плавным переходом */
body.modal-open {
  overflow: hidden;
  transition: overflow 0.4s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
  .tier-info-modal-content {
    padding: 25px;
    border-radius: 18px;
  }
  
  .tier-item {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }
  
  .tier-badge {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .tier-info-header h3 {
    font-size: 1.8rem;
  }
  
  .image-modal-content {
    max-width: 95%;
  }
  
  .image-modal-close {
    top: -60px;
    right: 50%;
    transform: translateX(50%);
  }
}







/* Стили для вкладки Ядер */
.nuclei-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.nuclei-card {
  background: var(--card-background);
  backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nuclei-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.nuclei-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nuclei-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nuclei-card:hover .nuclei-image img {
  transform: scale(1.05);
}

.nuclei-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-weight: 600;
}

.nuclei-info p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: 1.5;
}

.nuclei-cooldown {
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--primary-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .nuclei-grid {
    grid-template-columns: 1fr;
  }
  
  .nuclei-image {
    height: 140px;
  }
  
  .nuclei-info h4 {
    font-size: 1.1rem;
  }
  
  .nuclei-info p {
    font-size: 0.9rem;
  }
}

/* Стили для красивого заголовка */
.nuclei-header {
  margin: 2rem 0 1.5rem;
  position: relative;
}

.nuclei-title-wrapper {
  position: relative;
  display: inline-block;
}

.nuclei-main-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(100, 149, 237, 0.7);
  margin: 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #ffffff, #a5c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

.nuclei-title-bg {
  position: absolute;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(16, 42, 87, 0.15);
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
}

.nuclei-header-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 149, 237, 0.5), transparent);
  margin-top: 0.5rem;
  position: relative;
}

.nuclei-header-divider::after {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 10px rgba(100, 149, 237, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(100, 149, 237, 0.9);
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .nuclei-main-title {
    font-size: 1.5rem;
  }
  
  .nuclei-title-bg {
    font-size: 2.5rem;
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  
  .artifact-image img {
    width: 180px;
  }
  

}




.filter-btn, .tab-btn {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.filter-btn::before, .tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.filter-btn:hover::before, .tab-btn:hover::before {
  left: 100%;
}

.filter-btn.active, .tab-btn.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-color);
  transform: scale(1.05);
}



.hero {  
  background-image: url('images/other/Solo-leveling.webp');  
  background-attachment: fixed;  
  background-position: center;  
  background-size: cover;  
}  








/* Fire Element */
.fire-element {  
  border: 2px solid #ff4444;  
  background: rgba(255, 68, 68, 0.1);  
}  

/* Water Element */
.water-element {  
  border: 2px solid #44aaff;  
  background: rgba(68, 170, 255, 0.1);  
}  

/* Dark Element */
.shadow-element {  
  border: 2px solid #6633cc;  
  background: rgba(102, 51, 204, 0.1);  
}  

/* Light Element */
.light-element {  
  border: 2px solid #ffcc00;  
  background: rgba(255, 204, 0, 0.1);  
}  

/* Wind Element */
.wind-element {  
  border: 2px solid #33cc99;  
  background: rgba(51, 204, 153, 0.1);  
}








.character-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.character-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 68, 68, 0.2);
}
.character-image img {
  transition: transform 0.5s ease;
}
.character-card:hover .character-image img {
  transform: scale(1.1);
}





/* Общие стили для всех элементов */
.element-base {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.element-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.element-base:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Fire Element */
.fire-element {
  border: 2px solid #ff4444;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.15), transparent);
}

.fire-element::before {
  background: radial-gradient(circle at 50% 0%, rgba(255, 68, 68, 0.3), transparent 70%);
}

.fire-element:hover::before {
  opacity: 1;
  animation: firePulse 2s infinite alternate;
}

@keyframes firePulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Water Element */
.water-element {
  border: 2px solid #44aaff;
  background: linear-gradient(135deg, rgba(68, 170, 255, 0.15), transparent);
}

.water-element::before {
  background: radial-gradient(circle at 50% 100%, rgba(68, 170, 255, 0.3), transparent 70%);
}

.water-element:hover::before {
  opacity: 1;
  animation: waterFlow 3s infinite linear;
}

@keyframes waterFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Dark/Shadow Element */
.shadow-element {
  border: 2px solid #6633cc;
  background: linear-gradient(135deg, rgba(102, 51, 204, 0.15), transparent);
}

.shadow-element::before {
  background: conic-gradient(from 180deg at 50% 50%, 
              rgba(102, 51, 204, 0.3), 
              transparent 70%);
}

.shadow-element:hover::before {
  opacity: 0.8;
  animation: shadowSpin 4s infinite linear;
}

@keyframes shadowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Light Element */
.light-element {
  border: 2px solid #ffcc00;
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), transparent);
}

.light-element::before {
  background: radial-gradient(circle at center, 
              rgba(255, 255, 255, 0.4), 
              rgba(255, 204, 0, 0.2) 40%, 
              transparent 70%);
}

.light-element:hover::before {
  opacity: 1;
  animation: lightShine 2s infinite alternate;
}

@keyframes lightShine {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* Wind Element */
.wind-element {
  border: 2px solid #33cc99;
  background: linear-gradient(135deg, rgba(51, 204, 153, 0.15), transparent);
}

.wind-element::before {
  background: linear-gradient(90deg, 
              transparent, 
              rgba(51, 204, 153, 0.2), 
              transparent);
  background-size: 200% 100%;
}

.wind-element:hover::before {
  opacity: 1;
  animation: windSweep 1.5s infinite linear;
}

@keyframes windSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}




/* Модифицируем модальное окно */
.modal-content {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98) 0%,
    rgba(30, 41, 59, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


/* Модифицируем hero */
.hero {
  background-attachment: fixed;
  background-position: center 30%;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.8) 0%,
    rgba(15, 23, 42, 0.5) 100%
  );
}




/* Оптимизируем существующие анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


















.character-image {
  height: 240px;
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
              filter 0.4s ease;
}




.weapon-element {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Цвета для разных элементов */
.fire-element { color: #ff6b6b; border: 1px solid #ff6b6b; }
.water-element { color: #66b3ff; border: 1px solid #66b3ff; }
.wind-element { color: #6bffb3; border: 1px solid #6bffb3; }
.light-element { color: #ffe66b; border: 1px solid #ffe66b; }
.shadow-element { color: #b36bff; border: 1px solid #b36bff; }






.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 15px;
}

.btn-more:hover {
  background: rgba(96, 165, 250, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.btn-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-more:hover i {
  transform: translateX(3px);
}



.modal {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  /* Затемнение фона */
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 95%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 0px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);


}



/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 3;
}










/* Footer Styles */
.minimal-footer {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  position: relative;
}

.minimal-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-brand .logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  background: linear-gradient(90deg, #ffffff, #a5c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.slogan {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(96, 165, 250, 0.4);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links-mini {
  display: flex;
  gap: 1.5rem;
}

.footer-links-mini a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links-mini a:hover {
  color: var(--primary-color);
}

.version {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  
  .footer-main {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .slogan {
    margin: 0 auto;
  }
  
  .footer-meta {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links-mini {
    order: -1;
    margin-bottom: 1rem;
  }
}


/* Modern Promo Notification Toast */
.promo-notification {
  position: fixed;
  top: 30px;
  right: 30px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10000;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  transform: translateX(calc(100% + 30px));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 380px;
  overflow: hidden;
  opacity: 0;
}

.promo-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, 
    var(--primary-color), 
    var(--secondary-color));
}

.promo-notification::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(96, 165, 250, 0.08) 0%, 
    transparent 50%);
  pointer-events: none;
}

.promo-notification.show {
  transform: translateX(0);
  opacity: 1;
  animation: notificationShake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes notificationShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.promo-notification i {
  font-size: 1.8rem;
  color: var(--primary-color);
  min-width: 36px;
  text-align: center;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
  z-index: 1;
  transition: transform 0.3s ease;
}

.promo-notification.show i {
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
}

.notification-content {
  flex: 1;
  z-index: 1;
}

.promo-notification h5 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.promo-notification p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.promo-notification .promo-code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-weight: 700;
  color: #facc15;
  margin-left: 6px;
  letter-spacing: 1px;
  position: relative;
  padding: 2px 6px;
  background: rgba(234, 179, 8, 0.1);
  border-radius: 4px;
  border: 1px dashed rgba(234, 179, 8, 0.3);
}

.promo-notification .promo-code::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(250, 204, 21, 0.8), 
    transparent);
  animation: codeUnderline 0.6s forwards;
}

@keyframes codeUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Light theme */
.light-theme .promo-notification {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.96), 
    rgba(241, 245, 249, 0.98));
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.light-theme .promo-notification h5 {
  color: #1e293b;
}

.light-theme .promo-notification p {
  color: rgba(30, 41, 59, 0.85);
}

.light-theme .promo-notification .promo-code {
  color: #d97706;
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.2);
}

.light-theme .promo-notification .promo-code::after {
  background: linear-gradient(90deg, 
    rgba(217, 119, 6, 0.6), 
    transparent);
}

/* Progress bar */
.promo-notification .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.promo-notification .progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, 
    var(--primary-color), 
    var(--secondary-color));
  animation: progressShrink 3s linear forwards;
}

@keyframes progressShrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Responsive */
@media (max-width: 576px) {
  .promo-notification {
    top: 20px;
    right: 20px;
    left: 20px;
    max-width: calc(100% - 40px);
    transform: translateY(-150%);
  }
  
  .promo-notification.show {
    transform: translateY(0);
    animation: mobileSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  @keyframes mobileSlideIn {
    from { transform: translateY(-150%); }
    to { transform: translateY(0); }
  }
}













/* Modern Glass Header */
.glass {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass.scrolled {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Logo Styles */
.neon-logo {
  display: flex;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-letter {
  font-size: 1.8rem;
  background: linear-gradient(90deg, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
  transition: all 0.3s ease;
}

.logo-text {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.neon-logo:hover .logo-letter {
  text-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
}

.neon-logo:hover .logo-text {
  color: #fff;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link i {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #8b5cf6);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover i {
  transform: translateY(-2px);
  color: #60a5fa;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  transform: rotate(30deg) scale(1.1);
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 101;
  position: relative;
}

.toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: center;
}

.nav-toggle.active .toggle-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle.active .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .toggle-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    border-left: 1px solid rgba(96, 165, 250, 0.2);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: 0.8rem 1rem;
    border-radius: 8px;
  }

  .nav-link:hover {
    background: rgba(96, 165, 250, 0.1);
  }

  .nav-toggle {
    display: flex;
  }
}

/* Light Theme Styles */
.light-theme .glass {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .glass.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .logo-text {
  color: rgba(30, 41, 59, 0.9);
}

.light-theme .nav-link {
  color: rgba(30, 41, 59, 0.8);
}

.light-theme .nav-link:hover {
  color: #1e293b;
}

.light-theme .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(30, 41, 59, 0.8);
}

.light-theme .theme-toggle:hover {
  background: rgba(96, 165, 250, 0.1);
}

.light-theme .toggle-bar {
  background: #1e293b;
}

@media (max-width: 1024px) {
  .light-theme .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }
  
  .light-theme .nav-link:hover {
    background: rgba(96, 165, 250, 0.08);
  }
}





.squad-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}


.squad-header {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.squad-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.squad-header h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #8b5cf6);
  border-radius: 2px;
}

.element-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 10px currentColor;
}

/* Element Colors */
.fire-badge {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.water-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.wind-badge {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.light-badge {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.shadow-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}



.squad-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.squad-member:hover {
  transform: translateY(-5px);
}

.squad-member img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.squad-member:hover img {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
}

.squad-member span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.8rem;
  transition: color 0.3s ease;
}

.squad-member:hover span {
  color: #60a5fa;
}

.member-role {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.3rem;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.squad-stats {
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid rgba(96, 165, 250, 0.1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.squad-stats i {
  color: #60a5fa;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .squads-grid {
    grid-template-columns: 1fr;
  }
  
  .squad-members {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .squad-members {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .squad-member img {
    width: 70px;
    height: 70px;
  }
}








/* ТОЛЬКО стиль для SSS-бейджа (кружок с буквами) */
.sss-tier .character-tier {
  /* Градиентный фон */
  background: linear-gradient(135deg, #ff0000, #ff8c00);
  
  /* Яркая тень с эффектом свечения */
  box-shadow: 
    0 0 15px #ff0000, 
    0 0 25px #ff4500;
  
  /* Анимация пульсации */
  animation: sss-pulse 1.5s infinite alternate;
  
  /* Стиль текста */
  color: white !important;
  font-weight: 900;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  
  /* Дополнительные эффекты */
  border: 2px solid rgba(255,255,255,0.7);
  transform: rotate(-5deg);
}

/* Анимация пульсации */
@keyframes sss-pulse {
  0% {
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff4500;
    transform: rotate(-5deg) scale(1);
  }
  100% {
    box-shadow: 0 0 20px #ff0000, 0 0 40px #ff4500;
    transform: rotate(-5deg) scale(1.1);
  }
}



  /* Стили для SSS-бейджа в модальном окне */
  .tier-badge.sss-tier {
    background: linear-gradient(135deg, #ff0000, #ff8c00);
    box-shadow: 0 0 15px #ff0000, 0 0 25px #ff4500;
    animation: sss-pulse 1.5s infinite alternate;
    color: white !important;
    font-weight: 900;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
    border: 2px solid rgba(255,255,255,0.7);
    transform: rotate(-5deg);
  }

  /* Анимация для SSS */
  @keyframes sss-pulse {
    0% {
      box-shadow: 0 0 10px #ff0000, 0 0 20px #ff4500;
      transform: rotate(-5deg) scale(1);
    }
    100% {
      box-shadow: 0 0 20px #ff0000, 0 0 40px #ff4500;
      transform: rotate(-5deg) scale(1.1);
    }
  }






























.artifact-switch-container {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 15px;
}

.artifact-switch-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.artifact-switch-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.artifact-switch-btn i {
  margin-right: 5px;
}

.artifact-column h5 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #e2e8f0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(96, 165, 250, 0.3);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Стили для кнопки (центрирование под колонками) */
.artifact-switch-container {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.artifact-switch-btn {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}



















/* Основные стили для бокового меню */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #3b82f6;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  z-index: 9999;
}

.no-scroll {
  position: fixed;
  width: 100%;
  overflow-y: scroll;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -450px; /* Увеличено для более широкого меню */
  width: 400px; /* Значительно увеличена ширина */
  height: 100%;
  background: #0f172a;
  border-left: 1px solid #3b82f6;
  z-index: 9998;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 25px;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
}


.side-menu.open {
  right: 0;
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #3b82f6;
}

.side-menu-title {
  font-size: 1.5rem;
  color: #3b82f6;
  font-weight: 700;
}

.close-menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.menu-section {
  margin-bottom: 25px;
}

.menu-section-title {
  font-size: 1.2rem; /* Увеличен размер шрифта */
  color: #3b82f6;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid #1e3a8a;
  display: flex;
  padding: 10px 0;
  align-items: center;
}

.menu-section-title i {
  margin-right: 10px;
}

.menu-nav {
  list-style: none;
  padding-left: 0;
}

.menu-nav-item {
  margin-bottom: 10px;
}

.menu-nav-link {
  display: flex;
  align-items: center;
  color: #e2e8f0;
  text-decoration: none;
  padding: 15px 20px; /* Увеличен padding */
  border-radius: 8px; /* Увеличен радиус */
  transition: all 0.2s ease;
  font-size: 1.1rem; /* Увеличен размер шрифта */
}

.menu-nav-link:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.menu-nav-link i {
  margin-right: 12px; /* Увеличен отступ */
  width: 20px;
  text-align: center;
  font-size: 1.1rem; /* Увеличен размер иконок */
}

.menu-nav-link span {
  flex-grow: 1;
}

.user-profile {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(30, 58, 138, 0.3);
  border-radius: 10px;
  border: 1px solid #3b82f6;
}

.user-avatar {
  width: 70px; /* Увеличено */
  height: 70px; /* Увеличено */
  border-radius: 50%;
  background: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  border: 2px solid #3b82f6;
  font-size: 1.8rem; /* Увеличен размер иконки */
}

.user-info {
  flex-grow: 1;
}

.user-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: #3b82f6;
  font-size: 1.1rem; /* Увеличен размер шрифта */
}

.user-level {
  font-size: 0.9rem; /* Увеличен размер шрифта */
  color: #94a3b8;
}

.progress-container {
  margin-top: 5px;
  height: 6px; /* Увеличена высота */
  background: #1e293b;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 75%;
}

/* Адаптация для десктопа */
@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: flex; /* Показываем кнопку на ПК */
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    right: 20px;
  }
  
  .side-menu {
    right: -400px; /* Скрываем меню по умолчанию */
    width: 350px;
  }
  
  .side-menu.open {
    right: 0; /* Показываем меню при открытии */
  }
  
  .main-content {
    margin-right: 0;
  }
}

/* Адаптация для мобильных */
@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-content {
    margin-right: 0;
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .side-menu {
    width: 85%; /* На мобильных занимает 85% ширины */
    right: -100%; /* Полностью скрыто */
  }
  
  .side-menu.open {
    right: 0;
  }
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-nav-item {
  animation: fadeIn 0.3s ease forwards;
  opacity: 0;
}

.menu-nav-item:nth-child(1) { animation-delay: 0.1s; }
.menu-nav-item:nth-child(2) { animation-delay: 0.2s; }
.menu-nav-item:nth-child(3) { animation-delay: 0.3s; }
.menu-nav-item:nth-child(4) { animation-delay: 0.4s; }
.menu-nav-item:nth-child(5) { animation-delay: 0.5s; }
.menu-nav-item:nth-child(6) { animation-delay: 0.6s; }


/* Стили для уменьшенного header при скролле */
header.glass.scrolled {
  padding: 1rem 0;
}



#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}



body {
  background-color: #0f172a; /* или ваш основной цвет фона */
  transition: none !important; /* отключаем переходы для body */
}






















































/* Стили для страницы сборок */
.builds-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.builds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.build-card {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.build-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.build-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.build-actions {
  display: flex;
  gap: 10px;
}

.btn-icon {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}

.btn-icon:hover {
  color: #3b82f6;
}

.build-description {
  color: #94a3b8;
  margin-bottom: 15px;
}

.build-characters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.build-character {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 41, 59, 0.5);
  padding: 5px 10px;
  border-radius: 20px;
}

.build-character img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.empty-state {
  text-align: center;
  padding: 40px 0;
  color: #64748b;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #3b82f6;
}

/* Стили для модального окна */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  border-radius: 5px;
  color: #e2e8f0;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.characters-select {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 5px;
}

.character-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 5px;
  background: rgba(30, 41, 59, 0.5);
  cursor: pointer;
}

.character-option:hover {
  background: rgba(30, 41, 59, 0.8);
}

.character-option img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
}

.character-option input {
  margin-left: auto;
}


/* Добавьте в ваш styles.css */

/* Основная структура страницы */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Занимает всю высоту viewport */
}

/* Основное содержимое */
.builds-container {
  flex: 1; /* Занимает все доступное пространство */
  padding-bottom: 60px; /* Отступ для футера */
}

/* Стили для футера */
.minimal-footer {
  background-color: #0f172a;
  color: #fff;
  padding: 2rem 0;
  margin-top: auto; /* Прижимает футер к низу */
  width: 100%;
}

/* Остальные стили футера остаются без изменений */
.minimal-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* builds.css */

/* Основная структура */
.builds-content {
  padding-top: 80px;
  min-height: calc(100vh - 160px);
}

.builds-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка раздела */
.builds-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.builds-title-group h1 {
  font-size: 2rem;
  margin-bottom: 5px;
  color: #3b82f6;
}

.builds-title-group .builds-subtitle {
  color: #94a3b8;
  font-size: 1rem;
}

/* Кнопка создания */
.btn-primary.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
}

.btn-primary.with-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Сетка сборок */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

/* Карточка сборки */
.build-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #1e293b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.build-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: #3b82f6;
}

.build-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.build-card-header h3 {
  font-size: 1.4rem;
  margin: 0;
  color: #f8fafc;
}

.build-actions {
  display: flex;
  gap: 10px;
}

.btn-icon {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 5px;
}

.btn-icon:hover {
  color: #3b82f6;
}

.build-description {
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.5;
}

.build-characters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.build-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}

.build-character img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
  margin-bottom: 5px;
}

.build-character span {
  font-size: 0.8rem;
  text-align: center;
  color: #e2e8f0;
}

.build-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 10px;
  margin-top: 15px;
}

/* Состояние "нет сборок" */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: #94a3b8;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #3b82f6;
}

.empty-state p {
  font-size: 1.2rem;
  margin: 0;
}




/* Добавьте в builds.css */

/* Модальное окно выбора персонажей */
.characters-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.character-select-card {
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #1e293b;
  transition: all 0.3s ease;
  cursor: pointer;
}

.character-select-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: #3b82f6;
}

.character-select-image {
  position: relative;
  margin-bottom: 10px;
}

.character-select-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.character-tier-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fbbf24;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.character-select-info h4 {
  margin: 0 0 5px 0;
  color: #f8fafc;
  font-size: 1rem;
}

.character-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.element-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
}

.element-badge.water { background: #60a5fa; }
.element-badge.fire { background: #f87171; }
.element-badge.wind { background: #34d399; }
.element-badge.light { background: #fbbf24; }
.element-badge.shadow { background: #a78bfa; }

.btn-more {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid #3b82f6;
  color: #3b82f6;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-more:hover {
  background: rgba(59, 130, 246, 0.2);
}

.character-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Модальное окно деталей персонажа */
.character-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.character-details-content {
  background: #0f172a;
  border-radius: 12px;
  padding: 25px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #1e293b;
  position: relative;
}

.close-details {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #94a3b8;
}

.character-details-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.character-details-header .character-image {
  position: relative;
  flex-shrink: 0;
}

.character-details-header img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #1e293b;
}

.character-tier {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #0f172a;
  border: 2px solid #fbbf24;
  color: #fbbf24;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.character-tier.sss-tier {
  border-color: #f43f5e;
  color: #f43f5e;
}

.character-title h3 {
  margin: 0 0 5px 0;
  color: #f8fafc;
  font-size: 1.5rem;
}

.character-class {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
}

.detail-label {
  color: #94a3b8;
}

.detail-value {
  color: #e2e8f0;
  font-weight: 500;
}



/* Стили для кастомных чекбоксов */
.character-select-label {
  position: relative;
  display: block;
  cursor: pointer;
}

.character-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  background-color: rgba(15, 23, 42, 0.7);
  border: 2px solid #3b82f6;
  border-radius: 4px;
  z-index: 2;
  transition: all 0.2s ease;
}

.character-checkbox:checked ~ .custom-checkbox {
  background-color: #3b82f6;
}

.character-checkbox:checked ~ .custom-checkbox::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.character-checkbox:focus ~ .custom-checkbox {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Стили для ленивой загрузки */
img.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lazy-load.loaded {
  opacity: 1;
}

/* Плейсхолдер для изображений */
.character-select-card {
  position: relative;
  transition: all 0.3s ease;
}

.character-select-card.selected {
  box-shadow: 0 0 0 2px #3b82f6;
  transform: translateY(-2px);
}

.character-select-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.character-checkbox-container {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.custom-checkbox {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #64748b;
  border-radius: 4px;
  background: #1e293b;
  cursor: pointer;
  position: relative;
}

.character-checkbox:checked + .custom-checkbox {
  background: #3b82f6;
  border-color: #3b82f6;
}

.character-checkbox:checked + .custom-checkbox::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.character-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.character-select-image img {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.character-select-card:hover .character-select-image img {
  transform: scale(1.05);
}


/* builds.css */

/* Стили для карточек персонажей */
.character-select-card {
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #1e293b;
  transition: all 0.3s ease;
  overflow: hidden;
}

.character-select-image {
  position: relative;
  width: 100%;
  height: 160px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 6px;
}

.character-select-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.character-select-card:hover .character-select-image img {
  transform: scale(1.05);
}

/* Кастомные чекбоксы */
.character-select-label {
  position: relative;
  display: block;
  cursor: pointer;
}

.character-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 20px;
  height: 20px;
  background-color: rgba(15, 23, 42, 0.7);
  border: 2px solid #3b82f6;
  border-radius: 4px;
  z-index: 2;
  transition: all 0.2s ease;
}

.character-checkbox:checked ~ .custom-checkbox {
  background-color: #3b82f6;
}

.character-checkbox:checked ~ .custom-checkbox::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Основные стили карточки */
.character-card {
  position: relative;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  overflow: visible;
  /* Убраны все transition для карточки */
}

/* Контейнер для портрета персонажа */
.character-portrait-container {
  position: relative;
  height: 250px;
  overflow: visible;
  z-index: 1;
}

/* Изображение персонажа */
.character-portrait {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  max-width: none;
  transition: transform 0.4s ease-out, filter 0.4s ease;
  transform-origin: bottom center;
  z-index: 2;
}

/* Эффект "выхода" при наведении */
.character-card:hover .character-portrait {
  transform: translateX(-50%) scale(1.25);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Бейдж с тиром */
.character-tier-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
  z-index: 3; /* Выше персонажа */
  /* Без анимации */
}

.character-tier-badge.sss-tier {
  color: #f43f5e;
  border: 1px solid #f43f5e;
}

/* Информационная часть */
.character-info {
  padding: 15px;
  position: relative;
  z-index: 1; /* Под персонажем */
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0 0 8px 8px;
  margin-top: -20px; /* Перекрываем часть изображения */
}

/* Остальные элементы без изменений */
.character-info h3 {
  margin: 0 0 5px 0;
  color: #f8fafc;
}

.character-class {
  color: #94a3b8;
  margin-bottom: 10px;
}

.character-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.btn-more {
  margin-top: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid #3b82f6;
  color: #3b82f6;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  /* Без transition */
}

/* Отключаем анимацию для всех карточек */
.character-card::after {
  content: none !important; /* Удаляем содержимое */
  animation: none !important; /* Отключаем анимацию */
  opacity: 0 !important; /* Делаем полностью прозрачным */
  display: none !important; /* Скрываем элемент */
}

/* Если анимация зависит от элемента (например, water-element) */
.character-card.water-element::after,
.character-card.fire-element::after,
.character-card.wind-element::after,
.character-card.light-element::after,
.character-card.shadow-element::after {
  content: none !important;
  animation: none !important;
  display: none !important;
}

/* Убираем кнопки "Сохранить", "Поиск по картинке" и другие */
img.character-portrait {
  -webkit-touch-callout: none !important;  /* iOS Safari */
  -webkit-user-select: none !important;    /* Chrome/Safari */
  -khtml-user-select: none !important;    /* Konqueror */
  -moz-user-select: none !important;      /* Firefox */
  -ms-user-select: none !important;       /* IE/Edge */
  user-select: none !important;           /* Стандарт */
  pointer-events: none !important;        /* Блокируем клики */
}

/* Отключаем псевдоэлементы браузера */
img.character-portrait::-webkit-file-upload-button,
img.character-portrait::-webkit-media-controls,
img.character-portrait::-webkit-download-button {
  display: none !important;
  visibility: hidden !important;
}




/* Контейнер для портрета */
.character-portrait-container {
  position: relative;
  height: 250px;
  overflow: visible;
  z-index: 1;
}

/* Изображение персонажа с плавной анимацией */
.character-portrait {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  max-width: none;
  transform-origin: bottom center;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.5), 
              filter 0.4s ease;
  will-change: transform;
}

/* Стили для tier-бейджа */
.character-tier-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.character-tier-badge:hover {
  transform: scale(1.05);
}

.character-tier-badge.sss-tier {
  color: #f43f5e;
  border: 1px solid #f43f5e;
}

/* Информационная часть */
.character-info {
  padding: 15px;
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0 0 8px 8px;
  margin-top: -20px;
}

/* Кнопка "Подробнее" */
.btn-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid #3b82f6;
  color: #3b82f6;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-more:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .character-portrait {
    height: 90%;
    transition: none;
  }
  
  .character-tier-badge {
    font-size: 12px;
    padding: 3px 8px;
  }
}












.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #3b82f6;
  border-radius: 5px;
  background-color: #1e293b;
  color: #fff;
  font-size: 16px;
  margin-top: 5px;
}

.form-group select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.build-type {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

.normal-type {
  background-color: #3b82f6;
  color: white;
}

.guild-type {
  background-color: #f59e0b;
  color: #1e293b;
}





























/* Основные стили модального окна */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
}

.modal.active {
  display: flex;
  opacity: 1;
}

/* Контент модального окна */
.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 40px rgba(96, 165, 250, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
  transform: scale(1);
}

/* Заголовок модального окна */
.modal-header {
  padding: 20px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(96, 165, 250, 0.5);
  background: linear-gradient(90deg, #ffffff, #a5c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Тело модального окна */
.modal-body {
  padding: 25px;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
  scrollbar-width: thin;
  scrollbar-color: #60a5fa rgba(96, 165, 250, 0.1);
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: #60a5fa;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(96, 165, 250, 0.1);
  border-radius: 3px;
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Стили для контента персонажа */
.character-modal-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.character-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
}

.character-avatar {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 
    0 0 20px rgba(96, 165, 250, 0.4),
    0 0 40px rgba(96, 165, 250, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.character-info {
  flex: 1;
}

.character-name {
  font-size: 2rem;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 700;
}

.character-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.character-tier {
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: white;
}

.character-element {
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.character-description {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Секции модального окна */
.modal-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, transparent);
  border-radius: 3px;
}

/* Стили для артефактов */
.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.artifact-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  border-left: 4px solid #60a5fa;
  transition: all 0.3s ease;
}

.artifact-card:hover {
  background: rgba(96, 165, 250, 0.1);
  transform: translateY(-3px);
}

.artifact-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.artifact-stats {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .modal-content {
    max-height: 95vh;
  }
  
  .character-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .character-meta {
    justify-content: center;
  }
  
  .artifacts-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    padding: 15px;
  }
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-section {
  animation: fadeIn 0.5s ease forwards;
}

.modal-section:nth-child(1) { animation-delay: 0.1s; }
.modal-section:nth-child(2) { animation-delay: 0.2s; }
.modal-section:nth-child(3) { animation-delay: 0.3s; }

/* Эффект свечения для элементов */
.element-glow {
  position: relative;
}

.element-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 15px currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.element-glow:hover::after {
  opacity: 0.4;
}

/* Специальные стили для разных элементов */
.fire-element { color: #ff6b6b; }
.water-element { color: #66b3ff; }
.wind-element { color: #6bffb3; }
.light-element { color: #ffe66b; }
.shadow-element { color: #b36bff; }









/* Стили для кнопок входа/регистрации */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 10px;
}

.auth-btn {
  padding: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
}

.auth-btn.secondary {
  background: linear-gradient(135deg, #64748b, #475569);
}

/* Стиль кнопки выхода */
.logout-btn {
  margin-top: 10px;
  padding: 8px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}






/* Модальное окно */
#postModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#postModal.active {
  opacity: 1;
}

#postModal .modal-content {
  background-color: #1e293b;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  position: relative;
}

#postModal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: #94a3b8;
}

.modal-close:hover {
  color: #ffffff;
}

/* Стили для содержимого модального окна */
#buildPreviewContainer {
  margin: 15px 0;
}

.build-preview {
  background-color: #0f172a;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}


/* Стили для секции выхода */
.logout-section {
  margin-top: auto;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
  width: 100%;
  padding: 10px;
  background: rgba(255, 0, 0, 0.1);
  border: none;
  border-radius: 8px;
  color: #ff6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff5252;
}

.logout-btn i {
  font-size: 16px;
}


.auth-profile-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.auth-profile-btn:hover {
  color: #3b82f6; /* Синий цвет при наведении */
}





/* Отключаем анимации на мобильных */
@media (hover: hover) and (pointer: fine) {
  .character-card:hover .character-portrait {
    transform: translateX(-50%) scale(1.25);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  }
}



















/* Стили для карточек оружия */
.weapon-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e293b;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.weapon-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.weapon-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease-out;
  transform-origin: bottom center;
}

.weapon-card:hover .weapon-image img {
  transform: scale(1.15);
}

.character-tier {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.character-tier:hover {
  transform: scale(1.05);
}

.character-tier.sss-tier {
  color: #f43f5e;
  border: 1px solid #f43f5e;
}

.weapon-info {
  padding: 15px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0 0 8px 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.weapon-info h4 {
  margin: 0 0 8px 0;
  color: #f8fafc;
  font-size: 1.2rem;
}

.weapon-element {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  width: fit-content;
}

.weapon-element.fire-element { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.weapon-element.water-element { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.weapon-element.wind-element { background: rgba(52, 211, 153, 0.1); color: #34d399; }
.weapon-element.light-element { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.weapon-element.shadow-element { background: rgba(167, 139, 250, 0.1); color: #a78bfa; }

.weapon-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  width: fit-content;
}

.weapon-info p {
  margin: 0 0 10px 0;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}

.weapon-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-top: 10px;
}

.weapon-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Эффекты при наведении */
.weapon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #3b82f6;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .weapon-image {
    height: 160px;
  }
  
  .weapon-image img {
    transition: none;
  }
  
  .character-tier {
    font-size: 12px;
    padding: 3px 8px;
  }
}

/* Стили для SSS-оружия */
.weapon-card.sss-tier {
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(244, 63, 94, 0.05));
}

.weapon-card.sss-tier:hover {
  border-color: #f43f5e;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.2);
}

/* Эффект свечения для SSS-оружия */
.weapon-card.sss-tier::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(244, 63, 94, 0.05) 0%,
    rgba(244, 63, 94, 0) 50%,
    rgba(244, 63, 94, 0.05) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.weapon-card.sss-tier:hover::after {
  opacity: 1;
}





























/* Стили для карточек отрядов */
.squad-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e293b;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.squad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #3b82f6;
}

/* Заголовок отряда */
.squad-header {
  padding: 15px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.squad-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #f8fafc;
  font-weight: 600;
}

/* Бейдж элемента отряда */
.element-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.element-badge.fire {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
}

.element-badge.water {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
}

.element-badge.wind {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.element-badge.light {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1e293b;
}

.element-badge.shadow {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: white;
}

/* Участники отряда */
.squad-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
  padding: 15px;
  background: rgba(15, 23, 42, 0.7);
}

.squad-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.squad-member img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1e293b;
  transition: all 0.3s ease;
}

.squad-card:hover .squad-member img {
  transform: scale(1.05);
  border-color: #3b82f6;
}

.squad-member span {
  font-size: 0.8rem;
  color: #e2e8f0;
  text-align: center;
  font-weight: 500;
}

.member-role {
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.5);
  padding: 2px 6px;
  border-radius: 12px;
}

/* Статистика отряда */
.squad-stats {
  padding: 12px 15px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.squad-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}

/* Специальные стили для отрядов SSS-тира */
.squad-card.sss-tier {
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(244, 63, 94, 0.05));
}

.squad-card.sss-tier:hover {
  border-color: #f43f5e;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.2);
}

/* Эффект свечения для SSS-отрядов */
.squad-card.sss-tier::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(244, 63, 94, 0.05) 0%,
    rgba(244, 63, 94, 0) 50%,
    rgba(244, 63, 94, 0.05) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.squad-card.sss-tier:hover::after {
  opacity: 1;
}

/* Анимация при наведении для участников отряда */
@keyframes memberFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.squad-card:hover .squad-member:nth-child(1) img {
  animation: memberFloat 3s ease-in-out infinite;
}

.squad-card:hover .squad-member:nth-child(2) img {
  animation: memberFloat 3s ease-in-out infinite 0.5s;
}

.squad-card:hover .squad-member:nth-child(3) img {
  animation: memberFloat 3s ease-in-out infinite 1s;
}

.squad-card:hover .squad-member:nth-child(4) img {
  animation: memberFloat 3s ease-in-out infinite 1.5s;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .squad-card {
    border-radius: 10px;
  }
  
  .squad-header {
    padding: 12px;
  }
  
  .squad-header h3 {
    font-size: 1rem;
  }
  
  .element-badge {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .squad-members {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    padding: 10px;
  }
  
  .squad-member img {
    width: 50px;
    height: 50px;
  }
  
  .squad-member span {
    font-size: 0.7rem;
  }
  
  .member-role {
    font-size: 0.6rem;
  }
  
  .squad-stats {
    padding: 10px;
    font-size: 0.75rem;
  }
  
  /* Отключаем сложные анимации на мобильных */
  .squad-card:hover .squad-member img {
    transform: none;
    animation: none;
  }
}

/* Дополнительные эффекты для контейнера отрядов */
#squads-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  #squads-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Эффект групповой синергии */
.squad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #a78bfa);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.squad-card:hover::before {
  opacity: 0.8;
}

/* Стили для отрядов по элементам */
.squad-card.fire-element::before {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.squad-card.water-element::before {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.squad-card.wind-element::before {
  background: linear-gradient(90deg, #10b981, #84cc16);
}

.squad-card.light-element::before {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.squad-card.shadow-element::before {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
}

















/* Общие стили для секций */
.section-header {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #f8fafc;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(96, 165, 250, 0.3);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 15px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #1e293b;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #e2e8f0;
  border-color: #3b82f6;
}

.filter-btn.active {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-color: #3b82f6;
}

.filter-btn i {
  font-size: 0.9em;
}

/* Стили для сетки карточек */
.characters-grid, .weapons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Стили для карточек персонажей (охотников) */
.hunter-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e293b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hunter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
  border-color: #3b82f6;
}

.hunter-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hunter-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.5);
  transform-origin: bottom center;
}

.hunter-card:hover .hunter-image img {
  transform: scale(1.15);
}

.hunter-tier {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
  z-index: 3;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hunter-tier:hover {
  transform: scale(1.05);
}

.hunter-tier.sss-tier {
  color: #f43f5e;
  border: 1px solid #f43f5e;
}

.hunter-info {
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0 0 12px 12px;
}

.hunter-info h3 {
  margin: 0 0 8px 0;
  color: #f8fafc;
  font-size: 1.3rem;
}

.hunter-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.hunter-element {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.hunter-element.fire { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.hunter-element.water { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.hunter-element.wind { background: rgba(52, 211, 153, 0.1); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.hunter-element.light { background: rgba(251, 191, 36, 0.1); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.hunter-element.shadow { background: rgba(167, 139, 250, 0.1); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.3); }

.hunter-role {
  background: rgba(30, 41, 59, 0.5);
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  border: 1px solid #1e293b;
}

.hunter-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.hunter-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.hunter-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 41, 59, 0.5);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #1e293b;
}

/* Стили для SSS-персонажей */
.hunter-card.sss-tier {
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(244, 63, 94, 0.05));
}

.hunter-card.sss-tier:hover {
  border-color: #f43f5e;
  box-shadow: 0 15px 25px rgba(244, 63, 94, 0.2);
}

.hunter-card.sss-tier::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(244, 63, 94, 0.05) 0%,
    rgba(244, 63, 94, 0) 50%,
    rgba(244, 63, 94, 0.05) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hunter-card.sss-tier:hover::after {
  opacity: 1;
}

/* Эффект элемента */
.hunter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #a78bfa);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.hunter-card:hover::before {
  opacity: 0.8;
}

.hunter-card.fire::before {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.hunter-card.water::before {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.hunter-card.wind::before {
  background: linear-gradient(90deg, #10b981, #84cc16);
}

.hunter-card.light::before {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.hunter-card.shadow::before {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .characters-grid, .weapons-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
  
  .hunter-image {
    height: 200px;
  }
  
  .hunter-info {
    padding: 15px;
  }
  
  .hunter-info h3 {
    font-size: 1.1rem;
  }
  
  .hunter-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .filter-buttons {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Стили для оружия (аналогичные персонажам) */
.weapon-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e293b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.weapon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
  border-color: #3b82f6;
}

.weapon-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.weapon-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.5);
  transform-origin: bottom center;
}

.weapon-card:hover .weapon-image img {
  transform: scale(1.15);
}

.weapon-info {
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0 0 12px 12px;
}

.weapon-info h3 {
  margin: 0 0 8px 0;
  color: #f8fafc;
  font-size: 1.3rem;
}

.weapon-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.weapon-element {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.weapon-element.fire-element { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.weapon-element.water-element { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.weapon-element.wind-element { background: rgba(52, 211, 153, 0.1); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.weapon-element.light-element { background: rgba(251, 191, 36, 0.1); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.weapon-element.shadow-element { background: rgba(167, 139, 250, 0.1); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.3); }

.weapon-type {
  background: rgba(30, 41, 59, 0.5);
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  border: 1px solid #1e293b;
}

.weapon-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.weapon-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.weapon-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 41, 59, 0.5);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #1e293b;
}

/* Эффекты для оружия аналогичны персонажам */
.weapon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #a78bfa);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.weapon-card:hover::before {
  opacity: 0.8;
}

.weapon-card.fire-element::before {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.weapon-card.water-element::before {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.weapon-card.wind-element::before {
  background: linear-gradient(90deg, #10b981, #84cc16);
}

.weapon-card.light-element::before {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.weapon-card.shadow-element::before {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
}

/* Обновленные стили сетки карточек */
.characters-grid, .weapons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 карточки в ряд на десктопе */
  gap: 20px;
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
  .characters-grid, .weapons-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 карточки в ряд на планшетах */
  }
}

/* Адаптация для маленьких планшетов и больших телефонов */
@media (max-width: 768px) {
  .characters-grid, .weapons-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 карточки в ряд */
  }
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
  .characters-grid, .weapons-grid {
    grid-template-columns: 1fr; /* 1 карточка в ряд */
  }
  
  .hunter-image {
    height: 220px;
  }
  
  .hunter-info, .weapon-info {
    padding: 15px;
  }
  
  .hunter-info h3, .weapon-info h3 {
    font-size: 1.1rem;
  }
  
  .hunter-meta, .weapon-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .filter-buttons {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}













/* Stats Table Styles */
.stats-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-tab {
  padding: 12px 24px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.stats-tab:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #e2e8f0;
  border-color: #3b82f6;
}

.stats-tab.active {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-color: #3b82f6;
}

.stats-table-container {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.stats-table th, .stats-table td {
  padding: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table th {
  background: rgba(30, 41, 59, 0.5);
  color: var(--primary-color);
  font-weight: 600;
  position: sticky;
  top: 0;
}

.stats-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.stats-table tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.stats-category {
  background: rgba(59, 130, 246, 0.1) !important;
  font-weight: 600;
  text-align: left;
}

.stats-value {
  font-weight: 500;
}

.stats-highlight {
  color: var(--success-color);
  font-weight: 600;
}

.stats-note {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  margin-top: 20px;
}

.stats-note h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .stats-table th, .stats-table td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
  
  .stats-tab {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}



/* Стили для подсветки значений */
.stats-value.highlight {
  color: #10b981;
  font-weight: 700;
  position: relative;
}

.stats-value.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.highlight-text {
  color: #10b981;
  font-weight: 600;
}

/* Анимация для подсвеченных значений */
@keyframes pulseHighlight {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.stats-table tr:hover .stats-value.highlight {
  animation: pulseHighlight 1s ease-in-out;
}






    /* Базовые стили для мобильной адаптивности */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    .container {
      width: 100%;
      padding: 0 15px;
      margin: 0 auto;
    }
    
    /* Медиа-запросы для адаптивности */
    @media (min-width: 576px) {
      .container {
        max-width: 540px;
      }
    }
    
    @media (min-width: 768px) {
      .container {
        max-width: 720px;
      }
    }
    
    @media (min-width: 992px) {
      .container {
        max-width: 960px;
      }
    }
    
    @media (min-width: 1200px) {
      .container {
        max-width: 1140px;
      }
    }
    
    /* Адаптивные сетки */
    .characters-grid, .weapons-grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 15px;
      margin: 15px 0;
    }
    
    @media (min-width: 576px) {
      .characters-grid, .weapons-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    
    @media (min-width: 768px) {
      .characters-grid, .weapons-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    
    @media (min-width: 992px) {
      .characters-grid, .weapons-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }
    
    /* Адаптивные карточки */
    .hunter-card, .weapon-card {
      width: 100%;
      margin-bottom: 20px;
    }
    
    .hunter-image, .weapon-image {
      height: auto;
      max-height: 250px;
    }
    
