/* Base Styles - Tailwind Reset */
*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: #090f1e;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img, svg, video {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

ul, ol, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

/* Container */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}
@media (min-width: 768px) {
  .container { max-width: 768px; }
}
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

/* Header */
.header {
  color: #fff;
  font-size: 1rem;
  font-weight: inherit;
}

@media (min-width: 1024px) {
  .header {
    margin-top: 2rem;
  }
}

.header-desktop {
  display: none;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
  height: 3.5rem;
  border-radius: 0.75rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background-image: linear-gradient(110deg, #1e283f, rgba(20, 27, 46, 0.6) 100%);
}

@media (min-width: 1024px) {
  .header-desktop {
    display: flex;
  }
}

.header-mobile {
  border-radius: 0.75rem;
  background-color: transparent;
}

@media (min-width: 1024px) {
  .header-mobile {
    display: none;
  }
}

.header-mobile-inner {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-mobile-buttons {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.25rem;
}

.logo-img {
  height: 2rem;
  max-width: 150px;
  object-fit: contain;
}

.nav {
  display: flex;
  font-size: 1rem;
  gap: 1rem;
}

.nav a {
  white-space: nowrap;
}

.header-left {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn {
  text-align: center;
  line-height: 1;
  font-weight: 700;
  text-transform: capitalize;
  border-radius: 0.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .btn {
    width: auto;
  }
}

.btn-login {
  color: #fff;
  background-image: linear-gradient(to bottom right, #0095ff, #0855c4);
  padding: 1.25rem 1.5rem;
}

@media (min-width: 1024px) {
  .btn-login {
    padding: 0.75rem 1.5rem;
  }
}

.btn-register {
  color: #fff;
  background-image: linear-gradient(80deg, #31bc69 -8%, #089e4e 93%);
  padding: 1.25rem 1.5rem;
}

@media (min-width: 1024px) {
  .btn-register {
    padding: 0.75rem 1.5rem;
  }
}

.menu-btn {
  margin-left: auto;
  padding: 0.5rem;
}

/* Main */
.main {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .main {
    margin-top: 2rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .main-content {
    grid-column: span 3 / span 3;
  }
}

/* Slider Section */
.slider-section {
  display: flex;
  flex-direction: column;
}

.slider-wrapper {
  width: 100%;
  position: relative;
}

.slider-link {
  display: block;
  width: 100%;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  color: #fff;
}

.slider-link img {
  object-fit: cover;
  width: 100%;
}

/* Promo Code */
.promo-code {
  background-image: linear-gradient(255deg, #00b7ff, #8d53e9);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.promo-code span {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}

/* Базовые стили кнопки (добавили position: relative) */
.promo-code button {
  background-color: #fff;
  color: #000;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  
  /* ВАЖНО: нужно для правильного позиционирования надписи */
  position: relative; 
}

.promo-code button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.promo-code button:active {
  transform: scale(0.95);
}

/* ------------------------------------------- */
/* Стили для всплывающей надписи "Скопировано" */
/* ------------------------------------------- */
.copy-tooltip {
  position: absolute;
  bottom: 120%; /* Появляется чуть выше кнопки */
  left: 50%;
  transform: translateX(-50%); /* Центрируем по горизонтали */
  
  background-color: rgba(0, 0, 0, 0.75); /* Полупрозрачный черный фон */
  color: #fff; /* Белый текст */
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none; /* Чтобы надпись не перекрывала клики по кнопке */
  z-index: 10;
  
  /* Запускаем анимацию */
  animation: floatUpFade 1.5s ease-out forwards;
}

/* Маленький треугольник снизу (хвостик, как у диалогов) - по желанию */
.copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.75) transparent transparent transparent;
}

/* Сама анимация: появление, подъем вверх и растворение */
@keyframes floatUpFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px); /* Начинает чуть ниже стартовой точки */
  }
  15% {
    opacity: 1;
    transform: translate(-50%, 0); /* Быстро появляется */
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -15px); /* Медленно плывет вверх */
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -25px); /* Полностью исчезает, улетев еще выше */
  }
}

/* Article / Content Section */
.article {
  position: relative;
  background-image: linear-gradient(110deg, #1e283f, rgba(20, 27, 46, 0.6) 100%);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  max-width: none;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

/* Prose styles */
.prose {
  color: #d1d5db;
  --tw-prose-body: #d1d5db;
  --tw-prose-headings: #fff;
  --tw-prose-links: #fff;
  --tw-prose-bold: #fff;
  --tw-prose-bullets: #4b5563;
  font-size: 0.875rem;
  line-height: 1.7142857;
}

.prose-sm {
  font-size: 0.875rem;
  line-height: 1.7142857;
}

.prose-invert {
  --tw-prose-body: #d1d5db;
  --tw-prose-headings: #fff;
  --tw-prose-links: #fff;
  --tw-prose-bold: #fff;
  --tw-prose-bullets: #4b5563;
}

.leading-normal {
  line-height: 1.5;
}

.article h1 {
  color: var(--tw-prose-headings);
  font-weight: 800;
  font-size: 2.25em;
  margin-bottom: 0.25rem;
  line-height: 1.1111111;
}

.article h2 {
  color: var(--tw-prose-headings);
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 0.5rem;
  line-height: 1.3333333;
}

.article h3 {
  color: var(--tw-prose-headings);
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.article p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.article ul {
  list-style-type: disc;
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-inline-start: 1.625em;
}

.article li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.article a {
  color: var(--tw-prose-links);
  font-weight: 500;
}

.article a:hover {
  opacity: 0.75;
}

.article strong {
  color: var(--tw-prose-bold);
  font-weight: 600;
}

.article img {
  width: 100%;
  margin: 1rem auto;
  border-radius: 0.5rem;
}

@media (min-width: 1024px) {
  .article img {
    width: 75%;
  }
}

.article .opacity-70 {
  opacity: 0.7;
}

.article .underline {
  text-decoration: underline;
}

.article nav ul {
  list-style-type: disc;
}

/* Action Button */
.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  background-image: linear-gradient(255deg, #00b7ff, #8d53e9);
  color: #fff;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  transition: transform 0.3s;
  margin-top: 1rem;
  text-align: center;
  width: fit-content;
}

.article .btn-action,
.flex-col .btn-action,
.article > .btn-action,
.flex-col > .btn-action {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

/* Центрирование кнопок после h2 */
.article h2 + .btn-action {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.btn-action:hover {
  transform: scaleX(1.1) scaleY(1.05);
}

/* Comments Section */
.comments {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.comments-title {
  background-image: linear-gradient(110deg, #1e283f, rgba(20, 27, 46, 0.6) 100%);
  padding: 2rem;
  border-radius: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.comment {
  background-image: linear-gradient(110deg, #1e283f, rgba(20, 27, 46, 0.6) 100%);
  padding: 2rem;
  border-radius: 0.75rem;
  color: #fff;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.comment-author {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.comment-date {
  font-size: 0.875rem;
}

.comment-text {
  margin-top: 1rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  color: #fff;
}

.sidebar-banner img {
  object-fit: cover;
  width: 100%;
}

/* Sidebar NEW*/

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  color: #fff;
  container-type: inline-size; 
}

.sidebar-banner img {
  object-fit: cover;
  width: 100%;
  display: block;
}

.banner-promo-text {
  position: absolute;
  z-index: 2;
  top: 78%; 
  left: 53%; 
  font-size: 5cqi; 
  transform: translate(-50%, -50%);
  
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-family: sans-serif;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Sidebar NEW END*/

.sidebar-games {
  border-radius: 0.75rem;
  background-image: linear-gradient(110deg, #1e283f, rgba(20, 27, 46, 0.6) 100%);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  order: 2;
}

.sidebar-games-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  z-index: 10;
}

.sidebar-games-title {
  display: flex;
  align-items: center;
}

.sidebar-games-title svg {
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
}

.sidebar-games-title span {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5rem;
  color: #fff;
}

.sidebar-games-all {
  background-image: linear-gradient(302deg, #0855c4, #0095ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
}

.games-grid {
  width: 100%;
  display: grid;
  gap: 1rem;
  padding-bottom: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.games-grid figure,
.game-card {
  cursor: pointer;
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.game-card a {
  position: relative;
  display: block;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.game-card img {
  filter: drop-shadow(0 20px 13px rgba(0, 0, 0, 0.03)) drop-shadow(0 8px 5px rgba(0, 0, 0, 0.08));
  border-radius: 0.75rem;
  width: 100%;
}

.game-card figcaption {
  margin-top: 0.5rem;
  text-align: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* Footer */
.footer {
  background-color: transparent;
  color: #fff;
  line-height: 1.5;
  margin-top: 1.5rem;
}

.footer-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-col h4 {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.footer-col > div {
  margin-top: 1.5rem;
}

.footer-col ul {
  margin-top: 1rem;
}

.footer-col li {
  margin-top: 0.5rem;
}

.footer hr {
  border-color: #fff;
  border-top-width: 1px;
  border-style: solid;
  margin: 1.25rem 0;
}

.border-footer {
  border-color: #fff;
  border-top-width: 1px;
  border-style: solid;
  margin: 1.25rem 0;
  width: 100%;
}

.footer-copyright {
  text-align: center;
  color: #34405e;
}

/* Swiper Overrides */
swiper-container {
  width: 100%;
}

swiper-slide {
  width: 100%;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* User Icon SVG */
.user-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Utility */
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-2 { padding: 0.5rem; }
.text-white { color: #fff; }
.text-black { color: #000; }
.font-bold { font-weight: 700; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.uppercase { text-transform: uppercase; }
.rounded-section { border-radius: 0.75rem; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* Content flex column */
.flex-col { 
  flex-direction: column; 
  display: flex;
}

/* Центрирование всех кнопок внутри article */
.article .btn-action {
  display: flex !important;
  margin-left: auto !important;
  margin-right: auto !important;
}





/* Основная партнерская кнопка (многоцветный градиент) */
a.partner-btn-sc {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    /* Геометрия и расположение от новой btn-action */
    padding: 1rem 2rem;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    font-weight: 700;
    border-radius: 0.5rem;
    text-align: center;
    
    /* Обрезка блика по краям */
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    
    /* ЦВЕТА И ТЕНИ ИЗ ВАШЕГО КОДА */
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(120deg, #00a6ff, #18c8ff, #7a5cff, #16c784, #00a6ff);
    background-size: 300% 300%;
    
    /* Двойная тень: голубая и зеленая */
    box-shadow:
        0 8px 30px rgba(0, 166, 255, 0.35),
        0 0 24px rgba(22, 199, 132, 0.20);
        
    /* Плавность + анимация пульсации тени */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    animation: partnerGradient 5s ease infinite, partnerPulse 1.8s ease-in-out infinite;
    
    isolation: isolate;
    backface-visibility: hidden;
    will-change: transform;
}

/* Текст поверх эффектов */
a.partner-btn-sc span {
    position: relative;
    z-index: 2;
}

/* Бегущий блик (скорость из вашего кода: 2.8s) */
a.partner-btn-sc::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -120%;
    width: 70%;
    height: 180%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(18deg);
    animation: partnerShine 2.8s linear infinite;
    z-index: 1;
}

/* Эффект при наведении (растягивание от btn-action + усиленные тени/яркость) */
a.partner-btn-sc:hover,
a.partner-btn-sc:focus {
    transform: scaleX(1.1) scaleY(1.05); /* Эффект увеличения */
    color: #fff !important;
    box-shadow:
        0 12px 38px rgba(0, 166, 255, 0.48),
        0 0 30px rgba(22, 199, 132, 0.30);
    filter: brightness(1.08); /* Делает кнопку чуть ярче при наведении */
}

/* --- АНИМАЦИИ --- */

/* Плавный перелив цветов фона */
@keyframes partnerGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Движение блика */
@keyframes partnerShine {
    0%   { left: -120%; }
    100% { left: 160%; }
}

/* Пульсация свечения (смена оттенков тени) */
@keyframes partnerPulse {
    0%, 100% {
        box-shadow:
            0 8px 30px rgba(0, 166, 255, 0.35),
            0 0 24px rgba(22, 199, 132, 0.20);
    }
    50% {
        box-shadow:
            0 12px 36px rgba(0, 166, 255, 0.50),
            0 0 34px rgba(122, 92, 255, 0.28);
    }
}