/* =============================================================================
   ГЛАВНЫЙ САЙТ (ВИТРИНА)
   Всё что находится внутри #main-website — публичная страница без кошелька.
   ============================================================================= */
#main-website {
    position: relative;
    width: 100%;
    transition: opacity 0.5s ease;
}

/* ШАПКА ВИТРИНЫ
   position:fixed — всегда поверх контента.
   Скрыта (opacity:0) до шага 2 интро; JS добавляет класс .visible. */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0) 100%);
    opacity: 0; transform: translateY(-20px); transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}
/* Внутренняя обёртка шапки: ограничивает ширину до колонки NFT-контента (max 440px).
   Бургер и кошелёк всегда у правого края NFT-изображения. */
.site-header-inner {
    width: 100%; max-width: 440px;
    margin: 0 auto;
    padding: 20px; box-sizing: border-box;
    display: flex; justify-content: space-between; align-items: center;
}
/* На ПК и iPad шапка растягивается на всю ширину экрана —
   логотип у левого края, кнопки у правого. */
@media (min-width: 768px) {
    .site-header-inner { max-width: none; padding: 20px 28px; }
}
.site-header.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* Скрываем шапку витрины когда #main-website скрыт (пользователь в app-container).
   Работает через CSS-селектор смежного брата: #main-website.hidden ~ .site-header */
#main-website.hidden ~ .site-header { display: none !important; }
.site-header-logo { width: 40px; cursor: pointer;}

.header-controls { display: flex; align-items: center; gap: 20px; }
.menu-btn { cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 20px; height: 2px; background-color: #fff; }

/* Кнопка-иконка кошелька в шапке: круглая, обводка, белая иконка */
.wallet-nav-btn {
    background: transparent; border: 1px solid #333; border-radius: 50%;
    width: 40px; height: 40px; display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: background 0.3s, border 0.3s; color: #fff;
}
.wallet-nav-btn:hover { background: #111; border-color: #555; }
.wallet-nav-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ИНТРО-ЭКРАН
   Занимает весь экран поверх всего (z-index:50).
   Исчезает когда пользователь нажимает Enter Monoki (класс .fade-out). */
#intro-sequence {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 50; background-color: #000000; transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

/* Фоновое видео на шаге 2 интро.
   Центрируется через top:50% left:50% translate(-50%,-50%).
   object-fit:cover — всегда заполняет весь экран.
   Изначально opacity:0, появляется когда JS добавляет класс .visible. */
.intro-bg-video {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    object-fit: cover;
    z-index: 0;
    opacity: 0; transition: opacity 1s ease;
}
.intro-bg-video.visible { opacity: 1; }

/* Кнопка громкости на экране интро.
   position:fixed + env(safe-area-inset-bottom) — учитывает safe area iPhone/iPad.
   Изначально display:none, появляется на шаге 2 через JS. */
.intro-volume-btn {
    position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: 24px; z-index: 55;
    width: 40px; height: 40px;
    background: transparent; border: none; border-radius: 0;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.intro-volume-btn.visible { display: flex; }
/* Когда видео muted — кнопка едва заметна, но кликабельна. */
.intro-volume-btn.muted { opacity: 0.30; }
.intro-volume-btn:hover { background: transparent; }
.intro-volume-btn img { width: 22px; height: 22px; object-fit: contain; }

/* Центрирующая обёртка */
#logo-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
  padding-top: 10vh;
}

/* Контейнер двух слоёв — размер задаётся через JS */
#logo-stack {
  position: relative;
  overflow: visible;
  will-change: transform;
  pointer-events: auto;
  animation: logoFadeIn 1s ease forwards;
}

@keyframes logoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Оба слоя занимают 100% контейнера, абсолютно позиционированы */
#layer-bottom,
#layer-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

#layer-top { will-change: transform; }

/* КНОПКА "ENTER MONOKI"
   position:absolute в центре экрана.
   transition-delay:3s — кнопка появляется через 3 секунды после шага 2.
   Класс .visible добавляется в app.js → CSS анимирует появление. */
.btn-enter-main {
    position: absolute; top: calc(50% - 5vh); left: 50%; transform: translate(-50%, -20px);
    width: 40vw; /* Строго 40% от ширины любого экрана */
    min-width: 200px; /* ...но НИКОГДА не меньше 200px, чтобы текст всегда влезал */
    padding: 18px 20px; /* Фиксированная высота (меняться не будет) */
    background-color: #0033ff; color: #ffffff; border: none;
    font-family: 'FS Pixel Sans Unicode Regular', 'Press Start 2P', monospace; /* Твой шрифт */
    font-size: 12px;
    cursor: pointer; border-radius: 0; text-transform: uppercase;
    opacity: 0; pointer-events: none; transition: opacity 1s ease 3s, transform 0.8s ease 3s;
    box-sizing: border-box; text-align: center;
    white-space: nowrap; /* Чтобы текст не прыгал на вторую строку */
}
.btn-enter-main.visible { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.btn-enter-main:hover { background-color: #0044ff; box-shadow: 0 0 20px rgba(0, 51, 255, 0.4); }
/* Основной контент витрины.
   padding-top:100vh — отступ сверху чтобы контент начинался ниже интро-экрана.
   Изначально opacity:0, появляется после enterMonoki() в app.js. */
#site-content {
    padding-top: 0;
    opacity: 0; pointer-events: none; transition: opacity 1s ease;
}
#site-content.visible { opacity: 1; pointer-events: auto; }

/* Секция текущего дропа на витрине.
   Центрированный flex-column с карточкой NFT, заголовком, статусом и кнопкой VIEW. */
.drop-section {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 80px 20px;
}
.drop-media-container { width: 100%; max-width: 400px; margin-bottom: 20px; border-radius: 12px; background-color: #111; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.drop-video { width: 100%; height: auto; display: block; object-fit: cover; }

/* Номер N — жёлтый пиксельный текст (#041 и т.д.) */
.drop-n { font-family: 'Press Start 2P', monospace; font-size: 9px; color: #aa8800; margin-top: 10px; margin-bottom: 10px; }
.drop-title { font-family: sans-serif; font-size: 24px; font-weight: bold; margin: 0 0 10px 0; color: #fff; }
.drop-contract { font-family: 'Roboto Mono', monospace; font-size: 12px; color: #888; margin-bottom: 20px; }

.contract-link-inline { color: #888; text-decoration: underline; transition: color 0.3s; }
.contract-link-inline:hover { color: #ccc; }

/* Таймер разблокировки под статусом: синий пиксельный текст */
.drop-timer { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #0033ff; margin-bottom: 30px; line-height: 1.5; }

/* Кнопка VIEW под каждым NFT на витрине: синяя, пиксельный шрифт */
.btn-buy {
    background-color: #0033ff; color: #ffffff; border: none; padding: 18px 60px; text-transform: uppercase;
    font-family: 'Press Start 2P', monospace; font-size: 12px; cursor: pointer; transition: background-color 0.3s;
    margin-top: 40px; /* Пространство между статусом и кнопкой VIEW */
}

/* Бесконечная лента фотографий кимоно (карусель).
   Анимация scroll-left: translateX(0) → translateX(-50%)
   Картинки дублируются в HTML, поэтому -50% = возврат к началу. */
.image-marquee-container { width: 100%; overflow: hidden; padding: 40px 0 60px 0; display: flex; } /* Уменьшили нижний отступ */
.image-marquee { display: flex; animation: scroll-left 360s linear infinite; }
.image-marquee img { width: 100px; height: 100px; object-fit: cover; border-radius: 0px;}

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============================================================================
   СЕКЦИЯ ФИЛОСОФИИ (карусель кимоно)
   Занимает 100vh, содержит: ленту фотографий сверху, текст по центру, тейп снизу.
   ============================================================================= */
.new-philosophy-section {
    display: flex; flex-direction: column; 
    justify-content: space-between;
    align-items: center;
    height: calc(100vh - 50px - 18px);
    position: relative; background-color: #000000; overflow: hidden;
}

/* Горизонтальная декоративная лента (тейп) с паттерном из фотографии */
.horizontal-tape {
    width: 100%; height: 18px; position: absolute; left: 0; overflow: hidden;
    transition: top 1.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease;
    opacity: 0; z-index: 5;
}

.top-tape { display: none; }
.bottom-tape { position: relative; width: 100%; }

/* Опускаем ленту в самый низ */
#site-content.visible .bottom-tape { opacity: 1; }

/* Бесконечно скролящийся фон-паттерн внутри тейпа */
.tape-bg {
    position: absolute; top: 0; left: 0; width: 200%; height: 100%;
    background-image: url('https://i.postimg.cc/nVdYQf4Q/photo-2026-03-18-08-00-16.jpg');
    background-size: auto 100%; background-repeat: repeat-x;
    image-rendering: crisp-edges;
    animation: scroll-bg 60s linear infinite;
    animation-direction: reverse;
}
.tape-bg.reverse { animation-direction: normal; }

@keyframes scroll-bg {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Текст о проекте по центру секции философии.
   Появляется с задержкой 0.8с после того как #site-content становится visible. */
.philosophy-core-text {
    font-family: 'Roboto Mono', monospace; font-size: 12px; color: #888; text-align: center; line-height: 1.6;
    max-width: 600px; padding: 0 20px;
    opacity: 0; transform: scale(0.9);
    transition: all 1.5s ease 0.8s; 
    z-index: 2;
}
#site-content.visible /* Текст о проекте по центру секции философии.
   Появляется с задержкой 0.8с после того как #site-content становится visible. */
.philosophy-core-text { opacity: 1; transform: scale(1); }

/* Скрываем лишние переносы строк на ПК и делаем текстовый блок шире */
@media (min-width: 768px) {
    .mobile-br { display: none; }
    /* Текст о проекте по центру секции философии.
   Появляется с задержкой 0.8с после того как #site-content становится visible. */
.philosophy-core-text { max-width: 800px; }
}

.see-more-link {
    position: absolute; bottom: 30px;
    display: inline-block; color: #0033ff; font-family: 'Press Start 2P', monospace;
    font-size: 10px; cursor: pointer; text-decoration: underline;
    opacity: 0; transition: opacity 1s ease 1.5s; z-index: 10;
}
#site-content.visible .see-more-link { opacity: 1; }



/* =============================================================================
   СЕКЦИЯ МАНИФЕСТА
   Текст появляется когда секция попадает в зону видимости (IntersectionObserver).
   Видео снизу — VideoOnSiteBanner.webm, не мешает центрированию текста.
   ============================================================================= */
.manifesto-section {
    display: flex; flex-direction: column;
    align-items: center;
    /* height убран — секция растягивается по содержимому.
       Текст min-height 70vh + видео 30vh = минимум 100vh. */
    position: relative; z-index: 1; background-color: #000000;
    /* overflow: hidden убран — маска лент работает через z-index, не через overflow */
}

/* Видео абсолютно внизу — не влияет на центрирование текста */
.manifesto-bottom-video {
    /* убрано position: absolute — теперь в нормальном потоке, строго после текста */
    position: static;
    display: block;
    width: 100%;
    height: 30vh;         /* всегда ровно 30% высоты экрана */
    flex-shrink: 0;       /* не сжимается */
    object-fit: cover;    /* заполняет блок, лишнее обрезается */
    object-position: center; /* центр кадра видеo — по центру блока */
}

/* Текст манифеста: изначально скрыт (opacity:0, translateY(24px)).
   Класс .in-view добавляет app.js через IntersectionObserver → CSS анимирует. */
.manifesto-text {
    font-family: 'Roboto Mono', monospace; font-size: 12px; color: #888;
    text-align: center; max-width: 600px; padding: 0 20px;
    min-height: 70vh;        /* текстовый блок минимум 70% экрана */
    display: flex;           /* центрирование содержимого внутри */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    opacity: 0; transform: translateY(24px);
    transition: opacity 1.5s ease 0.2s, transform 1.5s ease 0.2s;
    z-index: 2;
}
.manifesto-text p {
    line-height: 1.2;
    margin: 0 0 1.5em 0;
}
.manifesto-text p:last-child { margin-bottom: 0; }
.manifesto-text.in-view { opacity: 1; transform: translateY(0); }

.manifesto-mobile { display: block; }
.manifesto-desktop { display: none; }

/* Информационный блок между баннером и блоком соцсетей.
   Стиль — аналог manifesto-text: Roboto Mono 12px #888, text-align left.
   Появляется с анимацией через IntersectionObserver в intro.js. */
.portal-info-section {
    background-color: #000000;
    padding: 80px 20px;
}
.portal-info-text {
    font-family: 'Roboto Mono', monospace; font-size: 12px; color: #888;
    text-align: left; max-width: 400px; margin: 0 auto; line-height: 1.6;
    opacity: 0; transform: translateY(24px);
    transition: opacity 1.5s ease 0.2s, transform 1.5s ease 0.2s;
}
.portal-info-text p { margin: 0 0 1.5em 0; }
.portal-info-text p:last-child { margin-bottom: 0; }
.portal-info-text.in-view { opacity: 1; transform: translateY(0); }
.portal-info-subscribe {
    color: #0033ff; text-decoration: none;
    transition: opacity 0.3s;
}
.portal-info-subscribe:hover { opacity: 0.7; }

@media (min-width: 768px) {
    .manifesto-mobile { display: none; }
    .manifesto-desktop { display: block; }
}
@media (min-width: 768px) {
    /* Текст манифеста: изначально скрыт (opacity:0, translateY(24px)).
   Класс .in-view добавляет app.js через IntersectionObserver → CSS анимирует. */
.manifesto-text { max-width: 860px; font-size: 13px; }
}

