/* Дополнения к стилям темы для site.js (замена ddaccordion и highslide) */
.submenu { display: none; }
.submenu.open { display: block; }
.sublink { cursor: pointer; }

.lightbox {
	position: fixed; inset: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .75); cursor: zoom-out;
}
.lightbox img {
	max-width: 95vw; max-height: 95vh;
	border: 6px solid #fff; border-radius: 6px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

/* Подсказка в поле поиска выглядит как прежний текст-значение, но исчезает при вводе */
.searchform .ifield input::placeholder { color: #353535; opacity: 1; }
.searchform .ifield input:focus::placeholder { color: transparent; }

/* Шрифт кнопки виджета itch.io (Lato Bold, латиница, лицензия OFL — fonts/OFL.txt) */
@font-face {
	font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap;
	src: url('../fonts/lato-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF;
}

/* Блок «Наши игры»: повторяет виджет itch.io 208×167 в узком режиме (стили из widget.css itch.io),
   но без iframe и стороннего кода */
.itch-widget {
	display: inline-block; position: relative; box-sizing: border-box;
	width: 208px; height: 167px; background: #fff; border: 1px solid #dadada;
	text-decoration: none; overflow: hidden;
}
.itch-widget img {
	display: block; box-sizing: border-box; width: 182px; height: 145px; margin: 10px auto 0;
	object-fit: cover; border: 1px solid #dadada; border-radius: 2px;
	box-shadow: 0 10px 10px -10px rgba(0, 0, 0, .3);
}
.itch-widget .itch-btn {
	position: absolute; left: 0; right: 0; bottom: 5px; text-align: center;
}
.itch-widget .itch-btn span {
	display: inline-block; box-sizing: border-box; height: 35px; padding: 0 10px;
	background: #fa5c5c; color: #fff; text-shadow: 0 1px 0 #e54747;
	border: 1px solid rgba(0, 0, 0, .1); border-radius: 3px; box-shadow: inset 0 0 1px rgba(255, 255, 255, .21);
	font: bold 14px/33px Lato, sans-serif; white-space: nowrap;
}
.itch-widget:active .itch-btn span { position: relative; top: 1px; }

/* Форма комментария (своя капча, без сторонних скриптов) */
.comment-form .hp { position: absolute; left: -9999px; }
.comment-form .comment-text { width: 98%; box-sizing: border-box; font: 12px/1.5 Arial, Helvetica, sans-serif; padding: 6px; }
.comment-form .captcha { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-form .captcha img { border: 1px solid #c2beb7; border-radius: 4px; background: #edeae4; }
.comment-form .captcha-input { width: 90px; font-size: 16px; letter-spacing: 3px; }
.comment-msg { margin: 8px 5px; color: #707070; }
.comment-msg.ok { color: #2e7d32; font-weight: bold; }
.comment-msg.error { color: #d2281f; }
