/* Основные стили */
body {
  font-family: 'Comic Sans MS', 'Segoe UI', Arial, sans-serif;
  background: #252044;
  color: #fff8ee;
  margin: 0;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Ссылки */
a, a:visited {
  color: #b0912f;
  text-decoration: underline;
  font-weight: bold;
}

/* Основной контейнер заметки */
.fridge-note {
  margin-top: 24px;
  background: #fffbe9;
  color: #291d19;
  border-radius: 16px;
  box-shadow: 0 6px 40px #0007, 0 2px 12px #cba45c66;
  padding: 32px 32px 20px 32px;
  max-width: 580px;
  width: calc(100vw - 10px);
  position: relative;
  text-align: left;
}

/* Основной контейнер заметки */
.fridge-note-private {
    margin-top: 24px;
    background: #fffbe9;
    color: #291d19;
    border-radius: 16px;
    box-shadow: 0 6px 40px #0007, 0 2px 12px #cba45c66;
    padding: 32px 32px 20px 32px;
    max-width: 1200px;
    width: calc(100vw - 10px);
    position: relative;
    text-align: left;
  }

.fridge-note:before {
  content: '🧲';
  font-size: 2.1rem;
  position: absolute;
  left: 32px;
  top: -32px;
  transform: rotate(-13deg);
}

/* Заголовок */
.headline {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 18px;
  color: #b0912f;
}

/* Мем с Батоном */
.baton-meme {
  margin: 16px auto 12px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 18px #0003;
  width: 100%;
  background: #eee6d4;
  text-align: center;
  font-size: 1.1rem;
  color: #a08b44;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Подвал */
.footer {
  font-size: 1.1rem;
  color: #ffedbd;
  margin: 24px 0 8px 0;
  opacity: 0.85;
  text-align: center;
}

/* Эмодзи кота */
.cat-emoji {
  font-size: 1.5rem;
  display: inline-block;
  vertical-align: middle;
}

/* Списки */
.fridge-note ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.fridge-note ul li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.8em;
}

/* Иконки для списков */
.craft-list li:nth-child(1):before { content: '🧑‍🍳'; position: absolute; left: 0; }
.craft-list li:nth-child(2):before { content: '⚔️'; position: absolute; left: 0; }
.craft-list li:nth-child(3):before { content: '💎'; position: absolute; left: 0; }
.craft-list li:nth-child(4):before { content: '🐸'; position: absolute; left: 0; }
.future-list li:before { content: '🚀'; position: absolute; left: 0; }

/* Блок мудрости Батона */
.baton-wisdom-block {
  margin: 24px 0;
  background: #fffbe9;
  color: #291d19;
  border-radius: 12px;
  box-shadow: 0 2px 14px #0002;
  padding: 24px 18px;
  font-size: 1.15rem;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Кнопка мудрости */
.wisdom-button {
  font-family: 'Comic Sans MS', 'Segoe UI', Arial, sans-serif;
  background: #b0912f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
}

/* Блок обратного отсчета */
.countdown-block {
  margin: 24px 0;
  font-family: 'Comic Sans MS', 'Segoe UI', Arial, sans-serif;
  background: #291d19;
  color: #ffd964;
  border-radius: 12px;
  box-shadow: 0 2px 14px #0002;
  padding: 18px 18px;
  font-size: 1.3rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-time {
  margin-left: 10px;
  font-weight: bold;
}

/* Разделитель */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #b0912f, transparent);
  margin: 24px 0;
  box-shadow: 0 1px 8px #b0912f33;
}

.baton-image {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* Адаптивность */
@media (max-width: 600px) {
  .fridge-note {
    padding: 20px 6vw 14px 6vw;
    width: calc(100vw - 10px);
  }
  .fridge-note:before {
    left: 10vw;
  }
} 

/* Стили для страницы проверки фаундера */
.founder-input {
    background: #fff;
    border: 2px solid #b0912f;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1.1rem;
    font-family: 'Comic Sans MS', 'Segoe UI', Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    color: #291d19;
}

.founder-input:focus {
    outline: none;
    border-color: #d4a956;
    box-shadow: 0 0 8px #b0912f33;
}

.founder-button {
    font-family: 'Comic Sans MS', 'Segoe UI', Arial, sans-serif;
    background: #b0912f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: background 0.3s ease;
}

.founder-button:hover {
    background: #d4a956;
}

.founder-button:active {
    transform: translateY(1px);
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #291d19;
}

.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.at-symbol {
    font-size: 1.1rem;
    font-weight: bold;
    margin-right: 8px;
    color: #291d19;
}

.result-block {
    margin-top: 24px;
    background: #fffbe9;
    border-radius: 12px;
    box-shadow: 0 2px 14px #0002;
    padding: 24px 18px;
    font-size: 1.15rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
}

.result-success {
    color: #2d7d32;
    background: #e8f5e8;
}

.result-error {
    color: #d32f2f;
    background: #ffeaea;
}

.back-link {
    display: inline-block;
    margin-top: 16px;
    color: #b0912f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #d4a956;
    text-decoration: underline;
}

/* Кнопка проверки фаундера на главной странице */
.founder-check-container {
    text-align: center;
    margin: 20px 0;
}

.founder-check-button {
    display: inline-block;
    background: #b0912f;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-family: 'Comic Sans MS', 'Segoe UI', Arial, sans-serif;
    transition: background 0.3s ease;
}

.founder-check-button:hover {
    background: #d4a956;
    text-decoration: none;
}

/* Контейнер для кнопок действий */
.action-buttons-container {
    text-align: center;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Кнопка транзакции */
.transaction-button {
    display: inline-block;
    background: #4a5568;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-family: 'Comic Sans MS', 'Segoe UI', Arial, sans-serif;
    transition: background 0.3s ease;
    opacity: 0.7;
    cursor: not-allowed;
}

.transaction-button:hover {
    background: #6a7a8a;
    text-decoration: none;
}

/* Активная кнопка транзакции */
.transaction-button.active {
    background: #2d5a87;
    opacity: 1;
    cursor: pointer;
}

.transaction-button.active:hover {
    background: #3a6fa0;
}

/* Адаптивность для кнопок */
@media (max-width: 600px) {
    .action-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .founder-check-button,
    .transaction-button {
        width: 100%;
        max-width: 300px;
    }
} 

/* Ссылка на транзакцию */
.transaction-link {
    display: inline-block;
    color: #2d5a87 !important;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #2d5a87;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.transaction-link:hover {
    background: #2d5a87;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 135, 0.3);
}

/* Спойлер с объяснением */
.how-it-works {
    margin: 20px 0;
    border: 2px solid #b0912f;
    border-radius: 12px;
    background: #fffbe9;
    overflow: hidden;
}

.how-it-works summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #b0912f;
    background: #fffbe9;
    border: none;
    outline: none;
    transition: background 0.3s ease;
    user-select: none;
}

.how-it-works summary:hover {
    background: #fff5d6;
}

.how-it-works summary::-webkit-details-marker {
    display: none;
}

.how-it-works summary::before {
    content: '🔽';
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.how-it-works[open] summary::before {
    transform: rotate(180deg);
}

.how-it-works-content {
    padding: 0 20px 20px 20px;
    color: #291d19;
    line-height: 1.6;
}

.how-it-works-content h4 {
    color: #b0912f;
    margin: 16px 0 8px 0;
    font-size: 1.1rem;
}

.how-it-works-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.how-it-works-content li {
    margin: 4px 0;
}

.how-it-works-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
} 