body.inner-page2 {
    margin: 0;
    padding: 0;
    background-image: url('toy.jpg') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #1a1a1a;
    font-family: 'Courier New', Courier, monospace;
}
.top-nav-bar2 {
	position: relative;
    z-index: 9999;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 15px 20px 5px 20px; /* Трохи підкоригували відступи */
    
    /* Змінюємо прозорий фон на напівпрозорий жовтий, як у основної шапки */
    background-color: rgba(255, 222, 0, 0.7); 
    
    width: 100%;
    box-sizing: border-box; 
}

.nav-button2 {
  text-decoration: none;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 15px;
    border: 2px solid #000;      /* Чорна рамка */
    background-color: #ffde00;   /* Заливка фірмовим жовтим кольором Playtime Co. */
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-button2:hover {
    background-color: #000;  /* При наведенні фон стає чорним */
    color: #ffd700;          /* А текст — жовтим (у стилі Playtime Co.) */
}

/* Велика жовта шапка */

.page-header2 {
    background-color: rgba(255, 220, 0, 0.7);
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #222;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
	flex-wrap: wrap;
	display: grid;
    /* Створюємо 3 колонки: ліва порожня, центр для тексту, права для лого */
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.corner-logo2 {
	grid-column: 3; /* Залишаємо в третій колонці */
    justify-self: end; /* Притискаємо до правого краю */
    
    /* Зменшуємо розміри: 
       60px - мінімальна висота на маленьких екранах, 
       10vw - адаптивний розмір (10% від ширини вікна),
       110px - максимальна висота (було 150px) */
    height: clamp(60px, 10vw, 110px); 
    
    width: auto;
    object-fit: contain;
    
    /* Додамо невеликий відступ справа, щоб лого не тулилося до краю екрана */
    margin-right: 20px;
}
.page-title2 {
	grid-column: 2; /* Ставимо текст строго у другу (центральну) колонку */
    text-align: center;
    margin: 0;
    white-space: nowrap;
	font-size: clamp(50px, 10vw, 80px);
    color: #222;
    font-weight: 900;
    text-transform: uppercase;
	
}

/* Контент */
.content-section { /* Зменшив верхній падінг для кращого вигляду *
    display: flex;
    flex-direction: column; /* Це головне: ставимо елементи один під одним */
    align-items: center;    /* Центруємо блоки по горизонталі */
	padding: 0px 50px;
}

.info-block2 {
    background-color: rgba(255, 215, 0, 0.87) !important;
    /* ПРИБИРАЄМО негативний марджин -110px, ставимо звичайний */
    
    padding: 20px; 
    border: 10px solid rgba(255, 215, 0, 0.7) !important; 
    color: #000 !important;
    font-weight: 900;
    text-align: center;
    font-size: 2rem;
	margin-bottom: -100px;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}
.info-block2 h2 {
    /* Чорний текст */
    color: #000 !important;
    
    /* Жовтий фон (як у шапки) */
	background-color: rgba(255, 215, 0, 0.7) !important;
    
    /* Підкреслення тексту */
    text-decoration: underline !important;
    
    /* ВАЖЛИВО: робимо фон тільки під текстом, а не на весь екран */
    display: inline-block !important;
    
    /* Відступи навколо тексту всередині жовтої заливки */
    padding: 5px 15px !important;
    
    /* Відступи між заголовком та текстом */
    margin-bottom: 15px !important;
    margin-top: 25px !important;
    
    /* Шрифт (можна налаштувати розмір) */
    font-size: 30 !important;
    font-weight: bold !important;
    text-transform: none; /* Щоб літери не ставали всі великими автоматично */
}
.page-header, .info-block1 {
    backdrop-filter: none !important;
}

.person-card {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    /* ЗМІНА: Центруємо все всередині картки */
    align-items: center; 
    margin-top: 20px !important;
}

/* Фото + Касета над рамкою */
.person-top-section {
   display: flex;          /* Створює ряд */
    flex-direction: row;    /* Направляє елементи горизонтально */
    align-items: flex-end;  /* Касета буде на рівні низу фото */
    gap: 30px;              /* Відстань між фото та касетою */
    margin-bottom: 10px;    /* Відступ до жовтої рамки */
    padding-left: 0;
}

.person-photo {
    width: 500px;
    border: 10px solid rgba(255, 215, 0, 0.7); /* Робимо рамку як у блоків */
    display: block;
}

/* Секція касети */
.tape-vhs-section {
    /* ЗМІНА: Абсолютно позиціонуємо кнопку в правому нижньому куті батьківського блоку */
    position: absolute;
    bottom: 20px;
    right: 20px;
    /* ЗМІНА: Щоб емодзі та кнопка були притиснуті до правого краю */
    text-align: right; 
    padding-bottom: 0;
}
.listen-text {
    display: block;
    color: #ff0 !important;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px #000;
}

.vhs-emoji {
    font-size: 60px;
    cursor: pointer;
    line-height: 1;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
	margin-right: 67px;
}

/* Нижня рамка - точна копія верхньої за структурою */
/* Стилізація текстового блоку під фото */
.person-info-subblock {
    background-color: rgba(255, 215, 0, 0.87) !important;
    border: 10px solid rgba(255, 215, 0, 0.7) !important;
    color: #000 !important;
    padding: 30px;
    text-align: right;
    font-weight: 900;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    line-height: 1.5;
}

/* Заголовок всередині цього блоку */
.person-info-subblock h3 {
    background-color: rgba(0, 0, 0, 0.1); /* Легке виділення для імені */
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
/* Контейнер для фото та касети (РЯД) */

/* Сама кнопка */
.my-button {
    display: inline-block;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 25px;
    border: 4px solid #000;
    background-color: #ffde00;
    transition: 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
}

.my-button:hover {
    background-color: #000;
    color: #ffde00;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px rgba(0,0,0,0.3);
}

/* Прибираємо стандартні стилі для контейнера з емодзі */
/* Окремо для емодзі */
.vhs-emoji {
    font-size: 30px;
    cursor: default;
    filter: none;
    line-height: 1;
}

.person-assets {
	display: flex;
	flex-direction: row;
}

/* Налаштування блоку з текстом */
.person-info-subblock {
    background-color: rgba(255, 215, 0, 0.87) !important;
    border: 10px solid rgba(255, 215, 0, 0.7) !important;
    color: #000 !important;
    padding: 30px;
    font-weight: 900;
    width: 100%;
    box-sizing: border-box;
    margin-top: 300px; 
    line-height: 1.5;
}

.listen-text {
    display: none;
}

.person-photo {
    width: 450px;
    border: 8px solid rgba(255, 215, 0, 0.7);
	object-fit: contain
}

.audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.text {
	display: flex;
	flex-direction: column;
	aling-items: center;
	text-align: center;
	margin: 0px 40px;
	margin-top: -19px;
	font-size: 20px;
}

/* Затемнений фон */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  /* Додаємо прокрутку, якщо карток багато і вони не влазять в екран телефону */
  overflow-y: auto; 
}

/* Контейнер вікна (робимо його ширшим, щоб помістилися картки) */
.modal-content {
  position: relative;
  background-color: #0d0d0d; 
  border: 3px solid #ffcc00; 
  border-radius: 12px;
  max-width: 900px; /* Збільшили ширину для сітки */
  width: 95%;
  padding: 30px 20px 20px 20px;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.4);
  animation: fadeIn 0.3s ease-in-out;
  max-height: 90vh; /* Щоб вікно не вилазило за межі екрану */
  overflow-y: auto; /* Внутрішня прокрутка для карток */
}
.modal-title{
	color: yellow;
	text-align: right;
}
.modal-title-trigger {
  display: block;             /* Робимо окремим блоком */
  text-align: center;         /* Центруємо по ширині */
  margin: 20px auto;          /* Робимо відступи зверху та знизу */
  color: #111;                /* Початковий колір (темний, під колір тексту вище) */
  font-family: 'Courier New', Courier, monospace; /* Комп'ютерний/архівний стиль шрифту */
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;        /* Розтягуємо літери для стилю */
  cursor: pointer;            /* Курсор-пальчик */
  transition: all 0.3s ease;  /* Плавна анімація */
}

/* Ефекти при наведенні мишкою */
.modal-title-trigger:hover {
  color: #ffcc00;             /* Стає яскраво-жовтим */
  background-color: #111;     /* З'являється темна підкладка, щоб жовтий текст не зливався з фоном */
  padding: 5px 10px;          /* Внутрішні відступи для підкладки */
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7); /* Тінь навколо блоку */
  transform: scale(1.05);     /* Текст трішки збільшується */
}

/* СІТКА ДЛЯ КАРТОК ПЕРСОНАЖІВ */
.critters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 колонки (як на фото 2) */
  gap: 15px; /* Відступи між картками */
}

/* Стиль для майбутніх картинок персонажів */
.critters-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform 0.2s;
}

.critters-grid img:hover {
  transform: scale(1.02); /* Легке збільшення при наведенні */
}

/* Хрестик закриття */
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}
.close-button:hover { color: #ff3333; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Адаптивність: на мобільних телефонах картки стануть в одну колонку */
@media (max-width: 600px) {
  .critters-grid {
    grid-template-columns: 1fr;
  }
}

#audio-btn {
    background: #ffd700;
    border: 3px solid #000;
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

#audio-btn:hover {
    transform: scale(1.1);
}