/* Базовые настройки страницы */
body {
  font-family: sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f7fbff 0%, #eef3ff 100%);
}

#pageContent {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Заголовок */
.vote-headline {
  margin: 20px 0 10px 0;
  font-size: 2.7em;
  font-weight: 600;
  line-height: 1.2;
  display: inline-block;
  padding-bottom: 8px;
  position: relative;
  text-align: center;
}
.vote-line {
  margin: 4px 0;
}
.vote-line.emphasis {
  font-weight: 700;
}
.vote-headline::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff5a5f, #00a4e8);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Картинка карты */
.main-image {
  width: 80%;
  max-width: 400px;
  margin: 10px auto 0 auto;
  display: block;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Верхний ряд: счётчики и логотип */
.vote-top-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px; /* расстояние между счетчиком YES, логотипом и счетчиком NO */
  margin-top: 20px;
}

/* Счётчики голосов */
.counter {
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 82, 82, 0.95), rgba(255, 60, 60, 0.9));
  padding: 15px 22px;
  border-radius: 10px;
  color: white;
  font-size: 36px;
  font-family: monospace;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(255, 82, 82, 0.28);
  transition: transform 0.25s ease;
}

/* Стиль для NO счётчика */
#no-count {
  background: linear-gradient(135deg, rgba(0, 183, 255, 0.95), rgba(0, 155, 235, 0.9));
  box-shadow: 0 10px 22px rgba(0, 183, 255, 0.28);
}

/* Анимационные цифры */
.digit {
  width: 30px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  transition: transform 1.8s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
}

.digit div {
  height: 45px;
}

.counter.bump {
  animation: counter-bump 0.55s ease;
}

@keyframes counter-bump {
  0% { transform: scale(1); }
  30% { transform: scale(1.06); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* Логотип OpenSea */
.logo-block img {
  width: 60px;
  height: 60px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-block img:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Кнопки голосования */
.vote-buttons-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.vote-btn {
  padding: 21px 54px;
  font-size: 33px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.vote-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.vote-btn.disabled,
.vote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.yes {
  background: linear-gradient(135deg, #ff5a5f, #ff3344);
  box-shadow: 0 10px 22px rgba(255, 82, 82, 0.3);
}

.no {
  background: linear-gradient(135deg, #10c0ff, #00a4e8);
  box-shadow: 0 10px 22px rgba(0, 164, 232, 0.3);
}

.vote-btn:active {
  transform: scale(0.97);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Кнопка DISCUSS */
.comment-block {
  margin-top: 20px;
}

.comment-btn {
  background-color: #000000;
  color: white;
  font-size: 28px;
  padding: 10px 32px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-btn img {
  height: 26px;
}

.comment-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Кнопка Join TRML */
.golden-btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 22px;
  font-weight: bold;
  color: black;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  animation: shine 4s ease-in-out infinite, pulse 2.5s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}

.golden-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.9);
}

/* Скрытие элементов */
.hidden {
  display: none;
}

/* Блок скачивания книг */
.book-section {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.book-section a {
  display: block;
  width: 80%;
  max-width: 400px;
  margin: 0 auto;
  text-decoration: none;
}

/* Кнопки скачивания книг */
.book-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: 
    opacity 0.4s ease, 
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
    box-shadow 0.2s ease;
  width: 100%;
  padding: 14px 10px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4em;
  text-align: center;
  background-color: #e6f0ff;
  border: 2px solid #337ab7;
  border-radius: 10px;
  cursor: pointer;
}

.book-btn.shown {
  opacity: 1;
  transform: translateY(0);
}

.book-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Анимации для золотой кнопки */
@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }
}
@media (max-width: 600px) {
  .vote-top-row {
    flex-direction: column;
    gap: 20px;
  }

  .vote-buttons-row {
    flex-direction: column;
    gap: 20px;
  }

  .vote-btn {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .logo-block img {
    width: 50px;
    height: 50px;
  }

  .counter {
    font-size: 20px;
  }
}

.vote-message {
  margin-top: 24px;
  font-size: 18px;
  font-weight: bold;
  color: #444;
}

.back-btn {
  margin-top: 16px;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f0f0, #dcdcdc);
  color: #222;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.telegram-btn {
  margin: 40px auto;
  padding: 16px 36px; 
  background: linear-gradient(90deg, #FFD700, #FFA500);
  color: #000;
  font-weight: bold;
  font-size: 20px;
  border: none;
  border-radius: 12px; 
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); 
  transition: all 0.3s ease;
}
.telegram-link {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.telegram-btn:hover {
  background: linear-gradient(90deg, #FFA500, #FFD700);
  transform: scale(1.07);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); 
}

.telegram-icon {
  width: 36px;
  height: 36px;}
  .page2-logo {
    width: 300px !important;
    max-width: 90% !important;
    margin: 30px auto 20px !important;
    display: block !important;
  }
  #slogan {
    font-size: 35px; /* Ещё чуть больше — будет красивее */
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700); /* Плавный градиент золота */
    background-size: 200% auto;
    color: transparent; /* Текст станет прозрачным, будет видно фон */
    background-clip: text;
    -webkit-background-clip: text; /* Для Safari */
    animation: shine 3s linear infinite; /* Бесконечная анимация */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  }
  
  /* Анимация движения градиента */
  @keyframes shine {
    0% {
      background-position: 0% center;
    }
    50% {
      background-position: 100% center;
    }
    100% {
      background-position: 0% center;
    }
  }
  .flag-btn {
    width: 48px; /* Увеличенный размер флажка */
    height: 32px;
    border-radius: 6px; /* Немного скруглённые углы */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавная анимация при наведении */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Лёгкая тень */
    margin: 5px;
  }
  
  .flag-btn:hover {
    transform: scale(1.2) rotate(2deg); /* Увеличение и лёгкий наклон */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6); /* Золотое свечение */
  }
  .language-note {
    margin: 30px auto;
    font-size: 22px;
    font-weight: bold;
    color: gold;
    text-align: center;
  }
  .telegram-link {
    text-decoration: none; /* убирает синюю полосу от <a> */
  }
  
  .telegram-btn {
    outline: none;         /* убирает обводку при клике */
    box-shadow: none;      /* убирает возможную синюю тень */
  }
  .flag {
    width: 64px;
    height: 42px;
    cursor: pointer;
    border: 4px solid transparent; /* ← всегда есть рамка */
    transition: border-color 0.2s;
  }
  
  .flag:hover {
    border-color: gold; /* ← просто меняем цвет */
  }
  .book-text {
    text-align: left;            /* выравнивание по левому краю */
    white-space: pre-wrap;       /* обёртка текста */
    word-break: break-word;      /* перенос слов */
    margin: 20px auto;           /* 🔥 центрирование */
    padding: 0 20px;             /* 🔥 внутренние отступы */
    max-width: 800px;            /* 🔥 ограничение ширины */
    font-size: 23px;             /* 🔥 читаемый размер шрифта */
    line-height: 1.6;            /* 🔥 комфортный межстрочный интервал */
  }
  .typing-cursor::after {
    content: '';
    display: inline-block;
    width: 7.5px;            /* ← увеличено на 25% от 6px */
    height: 1em;
    background-color: white; /* ← теперь белый, как текст */
    margin-left: 6px;
    animation: blink 1s steps(2, start) infinite;
    vertical-align: bottom;
  }
  
  
  
  @keyframes blink {
    0%   { opacity: 1; }
    49%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
  }
  .transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 1s ease;
  }
  
  .shrink-in {
    animation: shrinkToCenter 1.8s ease-in-out forwards;
  }
  
  @keyframes shrinkToCenter {
    0% { transform: scale(1); opacity: 1; }
    80% { transform: scale(0.05); opacity: 0.7; }
    100% { transform: scale(0); opacity: 0; }
  }
  .new-era-btn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: none;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.75s ease, opacity 0.75s ease;
  }
  
  .new-era-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
  }
  
  /* Активация кнопки */
  .new-era-btn.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
    animation: pulse-glow 4s ease-in-out infinite;
  }
  
  /* Наведение */
  .new-era-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 60px rgba(255, 204, 0, 0.8);
    cursor: pointer;
  }
  
  /* Пульсация свечения */
  @keyframes pulse-glow {
   
      0% {
        box-shadow: 0 0 30px rgba(255, 204, 0, 0.4); 
      }
      50% {
        box-shadow: 0 0 60px rgba(255, 204, 0, 0.8); 
      }
      100% {
        box-shadow: 0 0 30px rgba(255, 204, 0, 0.4);
      }
    }
    
  
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    pointer-events: none;
    z-index: 9998; /* меньше чем у кнопки */
    transition: opacity 1s ease;
  }
  
  #overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }
  #joinTRML {
    display: none;
  }
  .new-era-label {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px; /* увеличено на 20% */
    font-weight: 900;
    letter-spacing: 4px;
    font-family: 'Arial Black', sans-serif;
  
    background: linear-gradient(135deg, #FFA500, #CC7722); /* Золото → медь */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  
    /* Удалено: background-clip, text-color */
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.6);
  
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 10001;
    pointer-events: none;
  }
  
  
  .new-era-label.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
  
  .new-era-label.visible {
    display: block;
  }
  
  



  
 
  



  
  
