/* Könyvtár – a bejárat és a könyvtárterem */

.kt-bejarat {
	--kt-terem-arany: 16 / 8.6;
	--kt-terem-min: 540px;
	position: relative;
	color: #F3EBDD;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	isolation: isolate;
}

/* ================= A terem ================= */
.kt-terem {
	position: relative;
	aspect-ratio: var(--kt-terem-arany);
	min-height: var(--kt-terem-min);
	overflow: hidden;
	border-radius: 18px 18px 0 0;
	background:
		radial-gradient(ellipse at 60% 45%, rgba(255, 196, 120, .16), transparent 55%),
		linear-gradient(180deg, #1c130d 0%, #2a1c12 60%, #2a1c12 100%);
	container-type: inline-size;
}
.kt-terem::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 20;
	pointer-events: none;
	background: radial-gradient(ellipse at 30% 25%, rgba(120, 150, 220, .12), transparent 40%), rgba(6, 8, 20, .62);
	opacity: 0;
	transition: opacity .8s ease;
}
.kt-terem.is-sotet::after { opacity: 1; }
.kt-terem.is-sotet .kt-cuki--lampa, .kt-terem.is-sotet .kt-terem__ablak { position: absolute; z-index: 21; }

.kt-terem__fal svg { position: absolute; bottom: 15%; height: 72%; }
.kt-terem__fal svg:first-child { left: 1.5%; width: 19%; }
.kt-terem__fal svg:last-child { left: 64%; width: 17%; height: 66%; }
.kt-terem__fal svg { filter: brightness(.7) saturate(.85); box-shadow: 0 0 0 8px #3a2716; }
.kt-terem__lamberia {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14%;
	height: 17%;
	background: #3b2818 repeating-linear-gradient(90deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 9cqw);
	box-shadow: inset 0 6px 0 #4e3420, inset 0 -3px 0 #24170e;
}
.kt-terem__padlo {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 14.5%;
	background: #4a3222 repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 13cqw);
	box-shadow: inset 0 12px 20px rgba(0, 0, 0, .45);
}
.kt-terem__szonyeg {
	position: absolute;
	left: 27%;
	width: 46%;
	bottom: 1.5%;
	height: 10%;
	border-radius: 50%;
	background: radial-gradient(ellipse, #7a2e2a 0 52%, #b98a45 52% 55%, #6b2522 55% 72%, #b98a45 72% 74%, #5a1f1c 74%);
	opacity: .9;
}
.kt-terem__tabla {
	position: absolute;
	top: 3.5%;
	left: 48.75%; /* az ablak és a jobb szekrény között középen, hogy egyikre se lógjon rá */
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5cqw;
	padding: 1.2cqw 3cqw 1.4cqw;
	max-width: 28.5%;
	box-sizing: border-box;
	text-align: center;
	background: linear-gradient(180deg, #6e4524, #5a381d);
	border: 3px solid #b8893a;
	border-radius: 10px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, .45), inset 0 0 0 4px #4a2f1b;
}
.kt-terem__felirat { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: clamp(22px, 3.6cqw, 54px); color: #F2C46D; letter-spacing: .04em; text-shadow: 0 2px 0 #3a2410; }
.kt-terem__udvozlo { font-size: clamp(12px, 1.25cqw, 17px); color: #F3EBDD; opacity: .9; }

.kt-terem__ablak { position: absolute; left: 24%; top: 9%; width: 9.5%; z-index: 1; }
.kt-terem__ablak svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 18px rgba(120, 160, 255, .25)); }

@keyframes kt-pislog { 50% { opacity: .2; } }

/* Lebegő por a lámpafényben */
.kt-terem__por { position: absolute; left: 50%; top: 30%; width: 26%; height: 50%; z-index: 9; pointer-events: none; }
.kt-terem__por span {
	position: absolute;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #ffe7a8;
	opacity: 0;
	animation: kt-por 9s linear infinite;
}
.kt-terem__por span:nth-child(odd) { width: 2px; height: 2px; }
.kt-terem__por span:nth-child(1) { left: 10%; animation-delay: 0s; }
.kt-terem__por span:nth-child(2) { left: 22%; animation-delay: 1.3s; }
.kt-terem__por span:nth-child(3) { left: 35%; animation-delay: 2.6s; }
.kt-terem__por span:nth-child(4) { left: 48%; animation-delay: 3.4s; }
.kt-terem__por span:nth-child(5) { left: 60%; animation-delay: 4.1s; }
.kt-terem__por span:nth-child(6) { left: 72%; animation-delay: 5.5s; }
.kt-terem__por span:nth-child(7) { left: 84%; animation-delay: 6.2s; }
.kt-terem__por span:nth-child(8) { left: 15%; animation-delay: 7s; }
.kt-terem__por span:nth-child(9) { left: 42%; animation-delay: 7.8s; }
.kt-terem__por span:nth-child(10) { left: 66%; animation-delay: 8.4s; }
.kt-terem__por span:nth-child(11) { left: 28%; animation-delay: 4.8s; }
.kt-terem__por span:nth-child(12) { left: 55%; animation-delay: 2s; }
.kt-terem__por span:nth-child(13) { left: 78%; animation-delay: .6s; }
.kt-terem__por span:nth-child(14) { left: 92%; animation-delay: 3.9s; }
@keyframes kt-por {
	0% { transform: translate(0, 100%); opacity: 0; }
	15% { opacity: .8; }
	85% { opacity: .6; }
	100% { transform: translate(18px, -40%) ; opacity: 0; top: 0; }
}
.kt-terem.is-sotet .kt-terem__por { display: none; }

/* ================= Cukiságok ================= */
.kt-cuki {
	position: absolute;
	z-index: 5;
	display: block;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform .25s ease, filter .25s ease;
	-webkit-tap-highlight-color: transparent;
}
.kt-cuki__rajz { display: block; }
.kt-cuki__rajz svg { display: block; width: 100%; height: auto; overflow: visible; }
.kt-cuki:hover, .kt-cuki:focus-visible { transform: translateY(-4px); filter: drop-shadow(0 0 14px rgba(255, 214, 140, .55)); }
.kt-cuki:focus-visible { outline: 3px solid #F2C46D; outline-offset: 6px; border-radius: 8px; }
.kt-cuki__felirat {
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translate(-50%, -6px);
	padding: 5px 11px;
	border-radius: 999px;
	background: #FBF4E6;
	color: #2A1A0C;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
	box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}
.kt-cuki:hover .kt-cuki__felirat, .kt-cuki:focus-visible .kt-cuki__felirat { opacity: 1; transform: translate(-50%, -12px); }

.kt-cuki--tavcso { left: 22%; bottom: 13%; width: 9.5%; }
.kt-cuki--foldgomb { left: 4%; bottom: 5%; width: 8.5%; }
.kt-cuki--foldgomb .kt-foldgomb__fold { animation: kt-forog 14s linear infinite; }
.kt-cuki--foldgomb:hover .kt-foldgomb__fold, .kt-cuki--foldgomb.is-porog .kt-foldgomb__fold { animation-duration: 1.2s; }
@keyframes kt-forog { to { transform: translateX(72px); } }

.kt-terem__szekreny { position: absolute; left: 35%; bottom: 11%; width: 13.5%; z-index: 5; }
.kt-terem__szekreny .kt-cuki { position: relative; display: block; }
.kt-cuki--bagoly { width: 46% !important; margin: 0 auto -4px; }
.kt-cuki--katalogus { width: 100%; }
.kt-bagoly__szemhej { transform-origin: 50% 30%; transform: scaleY(0); animation: kt-pislant 5.5s infinite; }
@keyframes kt-pislant { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
.kt-cuki--bagoly:hover .kt-bagoly__fej { transform: rotate(-12deg); transform-origin: 50% 60%; transition: transform .3s ease; }
.kt-bagoly__fej { transition: transform .3s ease; transform-origin: 50% 60%; }
.kt-cuki--katalogus .kt-fiok { transition: transform .25s ease; }
.kt-cuki--katalogus:hover .kt-fiok:nth-child(7n+3) { transform: translateY(2px) scale(1.03); }

.kt-terem__iroasztal { position: absolute; left: 51%; bottom: 7%; width: 28%; z-index: 6; }
.kt-terem__iroasztal::before {
	content: "";
	position: absolute;
	left: -20%;
	bottom: 30%;
	width: 90%;
	height: 160%;
	background: radial-gradient(ellipse at 30% 70%, rgba(255, 220, 150, .3), transparent 60%);
	pointer-events: none;
	transition: opacity .6s ease;
}
.kt-terem.is-sotet .kt-terem__iroasztal::before { opacity: 0; }
.kt-cuki--asztal { position: relative; display: block; width: 100%; }
.kt-asztal-disz { display: block; cursor: default; }
.kt-terem__iroasztal > .kt-cuki:not(.kt-cuki--asztal), .kt-terem__kupac, .kt-terem__gyertya { position: absolute; bottom: calc(100% - 1.2cqw); }
.kt-cuki--lampa { left: 6%; width: 18%; }
.kt-cuki--homokora { left: 30%; width: 9%; }
.kt-terem__kupac { left: 42%; width: 20%; z-index: 4; }
.kt-terem__gyertya { left: 64%; width: 6%; }
.kt-cuki--macska { left: 68%; width: 34%; bottom: calc(100% - 2cqw) !important; }
.kt-terem__kupac svg, .kt-terem__gyertya svg { display: block; width: 100%; height: auto; }
.kt-lang { transform-origin: 50% 100%; animation: kt-lobog 1.6s ease-in-out infinite; }
@keyframes kt-lobog { 50% { transform: scale(.85, 1.1) rotate(3deg); } }
.kt-terem.is-sotet .kt-lampa__feny { opacity: .15; }
.kt-cuki--homokora.is-fordul .kt-homokora__test { transform-origin: 25px 40px; animation: kt-fordit .9s ease-in-out; }
@keyframes kt-fordit { to { transform: rotate(180deg); } }
.kt-homokora__hullo { stroke-dasharray: 3 3; animation: kt-hullik .8s linear infinite; }
@keyframes kt-hullik { to { stroke-dashoffset: -6; } }

.kt-macska__farok { transform-origin: 112px 58px; animation: kt-farok 3.5s ease-in-out infinite; }
@keyframes kt-farok { 50% { transform: rotate(-12deg); } }
.kt-cuki--macska::after {
	content: "z z z";
	position: absolute;
	left: 18%;
	top: -18%;
	font: italic 600 12px/1 Georgia, serif;
	color: #F3EBDD;
	opacity: .75;
	animation: kt-zzz 3s ease-in-out infinite;
	pointer-events: none;
}
@keyframes kt-zzz { 0% { transform: translate(0, 6px); opacity: 0; } 40% { opacity: .8; } 100% { transform: translate(10px, -10px); opacity: 0; } }
.kt-cuki--macska.is-dorombol::after { content: "♥ prrr ♥"; color: #ffb3c1; font-style: normal; }
.kt-cuki--macska.is-dorombol .kt-macska__fej { animation: kt-dorombol .25s ease-in-out 6 alternate; transform-origin: 38px 60px; }
@keyframes kt-dorombol { to { transform: rotate(-4deg); } }

.kt-cuki--lepcso { right: 2.2%; bottom: 13%; width: 10%; filter: brightness(.8) saturate(.9); }
.kt-cuki--disz { pointer-events: none; cursor: default; }
.kt-cuki--lepcso .kt-cuki__felirat { bottom: auto; top: 6%; opacity: 1; transform: translate(-50%, 0); background: #F2C46D; }
.kt-cuki--lepcso:hover .kt-cuki__felirat { transform: translate(-50%, -4px); }

.kt-terem__buborek {
	position: absolute;
	z-index: 30;
	max-width: 260px;
	margin: 0;
	padding: 10px 14px;
	border-radius: 14px;
	background: #FBF4E6;
	color: #2A1A0C;
	font: 600 15px/1.35 system-ui, sans-serif;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
	transform: translate(-50%, -100%);
	pointer-events: none;
	transition: opacity .25s ease;
}
.kt-terem__buborek:empty { opacity: 0; }

/* ================= Polcok és a gördülő létra ================= */
.kt-bejarat__polcok { position: relative; padding: 26px 0 0; background: #2a1c12; border-radius: 0 0 18px 18px; }
.kt-bejarat__polcok .kt-nezet { margin: 0; }
.kt-bejarat__polcok .kt-szuro { padding: 0 18px; color: #F3EBDD; }
.kt-letra-sin { position: absolute; left: 14px; right: 14px; top: 14px; height: 6px; border-radius: 3px; background: linear-gradient(180deg, #e3be72, #8a6326); z-index: 3; }
.kt-letra {
	position: absolute;
	z-index: 4;
	top: 8px;
	bottom: 6px;
	left: var(--kt-letra-x, 72%);
	width: 54px;
	padding: 0;
	border: 0;
	background: none;
	cursor: grab;
	touch-action: none;
	transition: left .9s cubic-bezier(.34, 1.3, .5, 1);
	filter: drop-shadow(8px 6px 6px rgba(0, 0, 0, .45));
}
.kt-letra.is-huz { transition: none; cursor: grabbing; }
.kt-letra__rajz {
	position: absolute;
	inset: 6px 0 16px;
	border-left: 8px solid #a77a4a;
	border-right: 8px solid #a77a4a;
	border-radius: 3px;
	background: repeating-linear-gradient(180deg, transparent 0 30px, #8a6326 30px 36px);
}
.kt-letra__rajz::before { content: ""; position: absolute; top: -10px; left: -12px; right: -12px; height: 14px; border: 5px solid #8a6326; border-bottom: 0; border-radius: 10px 10px 0 0; }
.kt-letra__rajz::after { content: ""; position: absolute; bottom: -18px; left: -10px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #B8893A 0 3px, #3a2a18 3.5px); box-shadow: 46px 0 0 0 #3a2a18; }
.kt-letra .kt-cuki__felirat { top: 30px; bottom: auto; transform: translate(-50%, 0); }
.kt-letra:hover .kt-cuki__felirat, .kt-letra:focus-visible .kt-cuki__felirat { opacity: 1; }
.kt-letra:focus-visible { outline: 3px solid #F2C46D; outline-offset: 2px; }

/* ================= Cédulakatalógus ================= */
.kt-katalogus {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(10, 6, 3, .7);
	backdrop-filter: blur(3px);
}
.kt-katalogus[hidden] { display: none; }
.kt-katalogus__fiok {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: min(1000px, 100%);
	max-height: 88vh;
	box-sizing: border-box;
	padding: 22px 24px 26px;
	border-radius: 10px;
	background: #6b4423;
	box-shadow: inset 0 0 0 6px #80532c, inset 0 0 0 8px #4a2f1b, 0 30px 70px rgba(0, 0, 0, .6);
	color: #F3EBDD;
	animation: kt-fiok-ki .45s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes kt-fiok-ki { from { transform: translateY(50px) scale(.96); opacity: 0; } }
.kt-katalogus__fej { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kt-katalogus__fej h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 26px; color: #F2C46D; }
.kt-katalogus__zar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #4a2f1b; color: #F3EBDD; font-size: 18px; cursor: pointer; }
.kt-katalogus__kereso { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 10px; background: #FBF4E6; color: #4a2f1b; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2); }
.kt-katalogus__kereso input { flex: 1; min-width: 0; min-height: 54px; border: 0; background: transparent; color: #2A1A0C; font: 500 19px/1.2 Georgia, serif; outline: none; }
.kt-katalogus__fulek { display: flex; flex-wrap: wrap; gap: 8px; }
.kt-katalogus__fulek button { min-height: 38px; padding: 0 16px; border-radius: 8px 8px 2px 2px; border: 0; background: #4a2f1b; color: #F3EBDD; font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }
.kt-katalogus__fulek button[aria-pressed="true"] { background: #e9dcc0; color: #2A1A0C; }
.kt-katalogus__allapot { margin: 0; font-size: 14px; color: #E9DCC0; min-height: 1.2em; }
.kt-katalogus__cedulak { list-style: none; margin: 0; padding: 6px 4px 10px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.kt-cedula a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 130px;
	box-sizing: border-box;
	padding: 18px 16px 14px;
	border-radius: 4px;
	background: #fdf8ec repeating-linear-gradient(180deg, transparent 0 23px, rgba(70, 110, 180, .2) 23px 24px);
	background-position: 0 14px;
	color: #2A1A0C;
	text-decoration: none;
	box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
	transform: rotate(var(--kt-r, 0deg));
	transition: transform .2s ease;
	animation: kt-cedula-be .35s ease both;
}
.kt-cedula a::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: #c0392b; opacity: .55; }
.kt-cedula a:hover, .kt-cedula a:focus-visible { transform: rotate(0) translateY(-4px) scale(1.03); outline: none; box-shadow: 0 0 0 3px #F2C46D, 0 10px 18px rgba(0, 0, 0, .4); }
@keyframes kt-cedula-be { from { opacity: 0; transform: translateY(14px) rotate(var(--kt-r, 0deg)); } }
.kt-cedula__fajta { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a4e14; display: flex; align-items: center; gap: 6px; }
.kt-cedula__pont { width: 10px; height: 10px; border-radius: 2px; }
.kt-cedula__cim { font-family: Georgia, serif; font-size: 19px; font-weight: 700; line-height: 1.2; }
.kt-cedula__meta { font-size: 13px; color: #5e574b; }
.kt-katalogus__ures { grid-column: 1 / -1; text-align: center; padding: 30px 10px; font-family: Georgia, serif; font-size: 18px; }
.kt-katalogus__ures button { margin-top: 12px; }

/* ================= A homlokzat és az ajtó ================= */
.kt-homlokzat {
	position: absolute;
	z-index: 50;
	top: 0;
	left: 0;
	right: 0;
	height: var(--kt-homlokzat-m, 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	overflow: hidden;
	border-radius: 18px 18px 0 0;
	padding-bottom: 74px;
	box-sizing: border-box;
	background-color: #5d5750;
	background-image:
		radial-gradient(ellipse at 50% 100%, rgba(255, 190, 110, .18), transparent 55%),
		linear-gradient(rgba(40, 34, 30, .55) 2px, transparent 2px),
		linear-gradient(90deg, rgba(40, 34, 30, .35) 2px, transparent 2px);
	background-size: 100% 100%, 100% 34px, 88px 68px;
	transform-origin: 50% 70%;
	transition: transform 1.3s cubic-bezier(.6, 0, .3, 1), opacity 1.1s ease .2s;
}
.kt-bejarat:not(.van-ajto) .kt-homlokzat, .kt-bejarat.is-kesz .kt-homlokzat { display: none; }
.kt-bejarat.is-bent .kt-homlokzat { transform: scale(3.2); opacity: 0; pointer-events: none; }
.kt-homlokzat__tabla {
	position: relative;
	margin-bottom: 18px;
	padding: 12px 34px;
	border-radius: 8px;
	background: linear-gradient(180deg, #6e4524, #4a2f1b);
	border: 3px solid #b8893a;
	box-shadow: 0 10px 20px rgba(0, 0, 0, .45);
}
.kt-homlokzat__tabla::before, .kt-homlokzat__tabla::after { content: ""; position: absolute; top: -40px; width: 2px; height: 40px; background: #8a7a5a; }
.kt-homlokzat__tabla::before { left: 22%; }
.kt-homlokzat__tabla::after { right: 22%; }
.kt-homlokzat__tabla span { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: clamp(26px, 4vw, 52px); color: #F2C46D; letter-spacing: .06em; text-shadow: 0 2px 0 #2a1a0c; }
.kt-ajto {
	position: relative;
	width: clamp(200px, 24%, 320px);
	aspect-ratio: 3 / 4.4;
	padding: 0;
	border: 14px solid #48413b;
	border-bottom: 0;
	border-radius: 50% 50% 0 0 / 32% 32% 0 0;
	background: #120b06;
	perspective: 1300px;
	cursor: pointer;
	overflow: hidden;
	box-shadow: inset 0 0 0 3px #2f2a25, 0 0 0 4px #6a625a;
}
.kt-ajto:focus-visible { outline: 4px solid #F2C46D; outline-offset: 6px; }
.kt-ajto__fenye { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 70%, #ffd892 0%, #d88a3a 35%, #3a210f 75%); opacity: .25; transition: opacity 1s ease; }
.kt-ajto__szarny {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50%;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 12%, transparent 88%, rgba(0, 0, 0, .25)),
		repeating-linear-gradient(90deg, #6e4524 0 18px, #66401f 18px 20px);
	box-shadow: inset 0 0 0 6px #4a2f1b;
	transition: transform 1.25s cubic-bezier(.5, 0, .3, 1);
}
.kt-ajto__szarny::before, .kt-ajto__szarny::after { content: ""; position: absolute; left: 16%; right: 16%; border: 3px solid #4a2f1b; border-radius: 4px; }
.kt-ajto__szarny::before { top: 22%; height: 30%; }
.kt-ajto__szarny::after { top: 60%; height: 28%; }
.kt-ajto__szarny--bal { left: 0; transform-origin: left center; border-right: 2px solid #2f1d10; }
.kt-ajto__szarny--jobb { right: 0; transform-origin: right center; }
.kt-ajto__kilincs { position: absolute; top: 54%; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe1a0, #b8893a 60%, #6b4a10); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.kt-ajto__szarny--bal .kt-ajto__kilincs { right: 10%; }
.kt-ajto__szarny--jobb .kt-ajto__kilincs { left: 10%; }
.kt-ajto:hover .kt-ajto__szarny--bal { transform: rotateY(-8deg); }
.kt-ajto:hover .kt-ajto__szarny--jobb { transform: rotateY(8deg); }
.kt-bejarat.is-nyilik .kt-ajto__szarny--bal { transform: rotateY(-108deg); }
.kt-bejarat.is-nyilik .kt-ajto__szarny--jobb { transform: rotateY(108deg); }
.kt-bejarat.is-nyilik .kt-ajto__fenye { opacity: 1; }
.kt-homlokzat__lepcso { width: clamp(260px, 34%, 440px); height: 26px; background: linear-gradient(180deg, #7a736b 0 50%, #6a635b 50%); clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.kt-homlokzat__gomb {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	min-height: 48px;
	padding: 0 30px;
	border-radius: 999px;
	border: 0;
	background: #F2C46D;
	color: #2A1A0C;
	font: 700 17px/1 system-ui, sans-serif;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .45);
	animation: kt-hiv 2.4s ease-in-out infinite;
}
.kt-homlokzat__gomb:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes kt-hiv { 50% { transform: translateX(-50%) translateY(-3px); } }
.kt-bejarat.is-nyilik .kt-homlokzat__gomb { opacity: 0; transition: opacity .3s ease; }
.kt-lampas { position: absolute; bottom: 30%; width: 26px; height: 40px; border-radius: 6px 6px 4px 4px; background: #2a2622; box-shadow: inset 0 0 0 3px #1a1714; }
.kt-lampas::before { content: ""; position: absolute; inset: 7px 6px 6px; border-radius: 3px; background: #ffcf6b; box-shadow: 0 0 26px 10px rgba(255, 190, 90, .5); animation: kt-lampas 2.2s ease-in-out infinite; }
.kt-lampas--bal { left: calc(50% - clamp(200px, 24%, 320px) / 2 - 70px); }
.kt-lampas--jobb { right: calc(50% - clamp(200px, 24%, 320px) / 2 - 70px); }
@keyframes kt-lampas { 50% { opacity: .75; box-shadow: 0 0 20px 6px rgba(255, 190, 90, .4); } }

/* ================= Telefonon: a terem egy kártyás „térkép” ================= */
@media (max-width: 720px) {
	.kt-terem { aspect-ratio: auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; padding: 150px 16px 24px; }
	.kt-terem__fal, .kt-terem__lamberia, .kt-terem__szonyeg, .kt-terem__por, .kt-terem__kupac, .kt-terem__gyertya, .kt-asztal-disz { display: none; }
	.kt-terem__padlo { height: 60px; }
	.kt-terem__tabla { max-width: 86%; width: max-content; }
	.kt-terem__ablak { left: auto; right: 14px; top: 96px; width: 46px; }
	.kt-terem__szekreny, .kt-terem__iroasztal { display: contents; }
	.kt-cuki, .kt-terem__szekreny .kt-cuki, .kt-terem__iroasztal > .kt-cuki:not(.kt-cuki--asztal) {
		position: relative;
		inset: auto !important;
		width: auto !important;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		margin: 0 !important;
		padding: 12px;
		border-radius: 14px;
		background: rgba(255, 255, 255, .06);
	}
	.kt-cuki__rajz { width: 60%; max-width: 120px; }
	.kt-cuki--asztal .kt-cuki__rajz, .kt-cuki--lepcso .kt-cuki__rajz { width: 80%; max-height: 120px; overflow: hidden; }
	.kt-cuki__felirat, .kt-cuki--lepcso .kt-cuki__felirat { position: static; transform: none !important; opacity: 1; white-space: normal; text-align: center; background: transparent; color: #F3EBDD; box-shadow: none; padding: 0; font-size: 13px; }
	.kt-cuki--macska::after { left: 60%; top: 4px; }
	.kt-homlokzat { --kt-homlokzat-m: 100%; }
	.kt-lampas { display: none; }
	.kt-letra { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.kt-bejarat *, .kt-bejarat *::before, .kt-bejarat *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Üres polc: nincs létra, és a felirat ne tapadjon a szélére */
.kt-bejarat__polcok .kt-ures { margin: 0; padding: 18px 24px 26px; color: #D8CDBA; }
.kt-bejarat__polcok:not(:has(.kt-szekreny)) .kt-letra,
.kt-bejarat__polcok:not(:has(.kt-szekreny)) .kt-letra-sin { display: none; }

/* Haza-link: csak ha a téma fejléce el van rejtve */
.kt-haza { display: none; }
body.kt-fejlec-rejtve .kt-haza {
	display: inline-flex;
	position: absolute;
	z-index: 60;
	top: 14px;
	left: 14px;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: rgba(20, 14, 10, .72);
	color: #F3EBDD !important;
	font: 600 14px/1 system-ui, sans-serif;
	text-decoration: none !important;
	backdrop-filter: blur(4px);
}
body.kt-fejlec-rejtve .kt-haza:hover { background: rgba(20, 14, 10, .9); }

/* A háttérpolcok: kattintásra legördül a valódi polchoz */
.kt-terem__polchoz {
	position: absolute;
	z-index: 2;
	bottom: 15%;
	height: 70%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	border-radius: 6px;
}
.kt-terem__polchoz--bal { left: 1.5%; width: 19%; }
.kt-terem__polchoz--jobb { left: 64%; width: 17%; height: 64%; }
.kt-terem__polchoz:hover, .kt-terem__polchoz:focus-visible { background: rgba(255, 214, 140, .08); box-shadow: inset 0 0 0 2px rgba(242, 196, 109, .5); outline: none; }
.kt-terem__polchoz .kt-cuki__felirat { bottom: auto; top: 40%; }
.kt-terem__polchoz:hover .kt-cuki__felirat, .kt-terem__polchoz:focus-visible .kt-cuki__felirat { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) { .kt-terem__polchoz { display: none; } }

/* ================= A valódi szekrény a teremben (egy díszpolc helyén) ================= */
.kt-bejarat.van-valodi-bal .kt-terem__fal svg:first-child,
.kt-bejarat.van-valodi-jobb .kt-terem__fal svg:last-child { visibility: hidden; }
.kt-terem__valodi {
	position: absolute;
	z-index: 3;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 6px 6px 2px 2px;
	background: #6E4524;
	box-shadow: 0 18px 30px rgba(0, 0, 0, .45), 0 0 0 4px #4e3220;
	scrollbar-width: thin;
	scrollbar-color: #b8893a #3a2716;
}
/* Fentről mérve, hogy a téma semmilyen margója ne tolja el */
.kt-terem__valodi--bal { left: 1.5%; top: 13%; width: 19%; height: 72%; bottom: auto !important; }
.kt-terem__valodi--jobb { left: 64%; top: 19%; width: 17%; height: 66%; bottom: auto !important; }
.kt-terem__valodi, .kt-terem__valodi-belso { margin: 0 !important; }
.kt-terem__valodi .kt-nezet, .kt-terem__valodi .kt-szekreny, .kt-terem__valodi .kt-polc { margin-block: 0 !important; }
.kt-terem__valodi:focus-visible { outline: 3px solid #F2C46D; outline-offset: 3px; }
.kt-terem__valodi-belso { width: 640px; zoom: .45; }
.kt-terem__valodi .kt-nezet { margin: 0; }
.kt-terem__valodi .kt-szekreny { border-radius: 0; box-shadow: none; padding: 14px 14px 18px; }
.kt-terem__valodi .kt-polc__sor { padding-inline: 16px; }
.kt-bejarat.nincs-also .kt-terem { border-radius: 18px; }

@media (max-width: 720px) {
	.kt-terem__valodi { position: relative; inset: auto; grid-column: 1 / -1; width: 100% !important; height: auto !important; max-height: 70vh; order: -1; }
	.kt-bejarat.van-valodi-bal .kt-terem__fal svg:first-child, .kt-bejarat.van-valodi-jobb .kt-terem__fal svg:last-child { visibility: visible; }
}
@media (max-width: 720px) {
	body.kt-fejlec-rejtve .kt-terem { padding-top: 200px; }
	body.kt-fejlec-rejtve .kt-terem__tabla { top: 66px; }
	body.kt-fejlec-rejtve .kt-terem__ablak { top: 150px; }
}

/* ================= A szekrény közelről (1.2.3) ================= */
.kt-terem__valodi { cursor: zoom-in; }
.kt-terem__valodi a { pointer-events: none; }
.kt-nagypolc.is-egy-polc .kt-polc:not(.is-kivalasztott) { display: none; }
.kt-terem__nagyito-felirat {
	position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 6px);
	padding: 6px 12px; border-radius: 99px; background: #F2C46D; color: #2A1A0C;
	font: 600 13px/1 system-ui, sans-serif; white-space: nowrap; box-shadow: 0 6px 14px rgba(0,0,0,.35);
	opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; z-index: 2;
}
.kt-terem__valodi .kt-terem__nagyito-felirat { position: sticky; bottom: 8px; left: auto; display: table; margin: -34px auto 8px; transform: none; }
.kt-terem__valodi:hover .kt-terem__nagyito-felirat, .kt-terem__valodi:focus-visible .kt-terem__nagyito-felirat,
.kt-terem__nagyito:hover .kt-terem__nagyito-felirat, .kt-terem__nagyito:focus-visible .kt-terem__nagyito-felirat { opacity: 1; transform: translate(-50%, 0); }
.kt-terem__valodi:hover .kt-terem__nagyito-felirat, .kt-terem__valodi:focus-visible .kt-terem__nagyito-felirat { transform: none; }
.kt-terem__nagyito { position: absolute; z-index: 2; bottom: 15%; height: 66%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.kt-terem__nagyito--bal { left: 1.5%; width: 19%; height: 72%; }
.kt-terem__nagyito--jobb { left: 64%; width: 17%; }
.kt-terem__nagyito:focus-visible { outline: 3px solid #F2C46D; outline-offset: 3px; }
@media (max-width: 720px) { .kt-terem__nagyito { display: none; } .kt-terem__nagyito-felirat { opacity: 1; } }

.kt-nagypolc {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	padding: clamp(12px, 4vw, 48px);
	overflow: hidden;
}
.kt-nagypolc[hidden] { display: none; }
.kt-nagypolc__hatter {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255, 196, 110, .32), transparent 70%),
		linear-gradient(180deg, #2b1b0f 0%, #1a1009 70%, #0f0905 100%);
	animation: kt-nagy-be .35s ease both;
}
.kt-nagypolc__hatter svg { position: absolute; top: 4%; height: 92%; width: 28%; filter: blur(2.5px) brightness(.45) saturate(.8); }
.kt-nagypolc__hatter svg:first-child { left: -4%; }
.kt-nagypolc__hatter svg:nth-child(2) { right: -4%; }
.kt-nagypolc__feny { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, transparent 35%, rgba(0, 0, 0, .55) 100%); }
.kt-nagypolc__keret {
	position: relative; z-index: 1;
	width: min(1100px, 100%); max-height: 100%;
	overflow: auto; overscroll-behavior: contain;
	padding: 18px 18px 8px;
	border-radius: 14px;
	background: rgba(42, 26, 14, .55);
	box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(242, 196, 109, .25);
	scrollbar-width: thin; scrollbar-color: #b8893a #3a2716;
	animation: kt-nagy-ki .45s cubic-bezier(.2, .9, .3, 1.1) both;
}
.kt-nagypolc__belso .kt-nezet { margin: 0 !important; }
.kt-nagypolc__zar {
	position: sticky; top: 0; float: right; z-index: 5; margin: -6px -6px 6px 6px;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: #F2C46D; color: #2A1A0C; font-size: 20px; box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.kt-nagypolc__zar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kt-nagypolc__tipp { clear: both; margin: 10px 0 4px; text-align: center; color: #E9DCC0; font: italic 15px/1.4 Georgia, serif; opacity: .8; }
@keyframes kt-nagy-be { from { opacity: 0; } }
@keyframes kt-nagy-ki { from { opacity: 0; transform: scale(.55) translateY(40px); } }
@media (prefers-reduced-motion: reduce) { .kt-nagypolc__hatter, .kt-nagypolc__keret { animation: none; } }

/* ================= Az íróasztal fiókjai (1.3.0) ================= */
.kt-iroasztal-fiok {
	position: absolute; z-index: 3;
	top: 16.9%; width: 25.4%; height: 21.6%;
	padding: 0; border: 2px solid #4a2f1b; border-radius: 2px;
	background: linear-gradient(180deg, #7a4d29, #6e4524);
	cursor: pointer;
	transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), box-shadow .45s ease, filter .3s ease;
	transform-origin: 50% 100%;
}
.kt-iroasztal-fiok--bal { left: 7.3%; }
.kt-iroasztal-fiok--jobb { left: 67.3%; }
.kt-iroasztal-fiok__fogantyu { position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #E3BE72; transform: translate(-50%, -50%); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.kt-iroasztal-fiok:hover { filter: brightness(1.12); }
.kt-iroasztal-fiok:focus-visible { outline: 3px solid #F2C46D; outline-offset: 3px; }
.kt-iroasztal-fiok.is-kint { transform: translateY(26%) scale(1.14); box-shadow: 0 -6px 0 -2px #3a2414 inset, 0 14px 20px rgba(0, 0, 0, .55); filter: brightness(1.15); }
.kt-iroasztal-fiok .kt-cuki__felirat { bottom: auto; top: 112%; transform: translate(-50%, 0); z-index: 8; }
.kt-iroasztal-fiok:hover .kt-cuki__felirat, .kt-iroasztal-fiok:focus-visible .kt-cuki__felirat { opacity: 1; transform: translate(-50%, 4px); }
.kt-iroasztal-fiok.is-kint .kt-cuki__felirat { opacity: 0 !important; }

.kt-terem__cetli {
	position: absolute; z-index: 31;
	width: min(290px, 80vw); box-sizing: border-box;
	padding: 20px 20px 16px;
	background:
		repeating-linear-gradient(180deg, transparent 0 25px, rgba(90, 120, 170, .18) 25px 26px),
		#FBF4E6;
	color: #2A1A0C;
	border-radius: 3px;
	box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
	transform: translate(-50%, -100%) rotate(-2deg);
	font: 500 17px/1.5 Georgia, "Gentium Book Plus", serif;
	text-align: center;
	animation: kt-cetli-ki .5s cubic-bezier(.2, .9, .3, 1.25) both;
}
.kt-terem__cetli[hidden] { display: none; }
.kt-terem__cetli p { margin: 0 0 8px; }
.kt-terem__cetli p:last-child { margin-bottom: 0; }
.kt-terem__cetli-gondolat { font-style: italic; }
.kt-terem__cetli-tu { position: absolute; left: 50%; top: -10px; width: 60px; height: 20px; transform: translateX(-50%) rotate(3deg); background: rgba(242, 196, 109, .7); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.kt-terem__cetli a { color: #8A4A1E; font-weight: 600; text-decoration: none; }
.kt-terem__cetli a:hover { text-decoration: underline; }
.kt-terem__cetli-konyv { display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.kt-terem__cetli-gerinc { flex: none; width: 12px; height: 46px; border-radius: 2px; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .2); }
.kt-halk { opacity: .7; font-size: 15px; }
@keyframes kt-cetli-ki { from { opacity: 0; transform: translate(-50%, -60%) rotate(6deg) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .kt-terem__cetli { animation: none; } .kt-iroasztal-fiok { transition: none; } }
@media (max-width: 720px) {
	.kt-iroasztal-fiok { position: relative; inset: auto; width: auto; height: auto; min-height: 64px; border-radius: 14px; border-width: 3px; }
	.kt-iroasztal-fiok .kt-cuki__felirat { position: static; opacity: 1; transform: none !important; background: transparent; color: #F3EBDD; box-shadow: none; }
	.kt-iroasztal-fiok__fogantyu { width: 12px; top: 22%; }
	.kt-terem__cetli { position: fixed; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) rotate(-2deg); }
}

/* Csak a webhely gazdája látja: gyors út a terem beállításaihoz */
.kt-terem-szerk { position: absolute; top: 14px; right: 14px; z-index: 40; padding: 8px 14px; border-radius: 99px; background: rgba(242, 196, 109, .92); color: #2A1A0C !important; font: 600 13px/1 system-ui, sans-serif; text-decoration: none !important; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.kt-terem-szerk:hover { background: #F2C46D; }

/* ================= 1.5.0: cirmos „M”, ébredő cica, Hold a távcsőben, napló polca, kis fekete cica ================= */
.kt-cuki__felirat { z-index: 12; }
.kt-macska__nyitott { display: none; }
.kt-cuki--macska.is-ebren .kt-macska__nyitott { display: inline; }
.kt-cuki--macska.is-ebren .kt-macska__szem { display: none; }
.kt-cuki--macska.is-ebren::after { content: "♥ prrr ♥"; }

/* A Hold a távcsőben */
.kt-terem__hold {
	position: absolute; z-index: 32; top: 8%; width: 250px; transform: translateX(-50%);
	padding: 18px 18px 16px; border-radius: 18px; text-align: center;
	background: radial-gradient(circle at 50% 30%, #1e2748, #0b0f20 70%);
	box-shadow: 0 0 0 4px #B8893A, 0 0 0 7px #5a3b22, 0 24px 50px rgba(0, 0, 0, .6);
	color: #ECE5D6; font: 500 14px/1.45 system-ui, sans-serif;
	animation: kt-cetli-ki .5s cubic-bezier(.2, .9, .3, 1.2) both;
}
.kt-terem__hold[hidden] { display: none; }
.kt-terem__hold-lencse { width: 170px; height: 170px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #111633, #05060d); box-shadow: inset 0 0 0 6px #2a2f44, inset 0 0 30px rgba(0, 0, 0, .9); display: grid; place-items: center; }
.kt-terem__hold-lencse svg { width: 82%; height: 82%; filter: drop-shadow(0 0 14px rgba(255, 245, 210, .35)); }
.kt-terem__hold-nev { margin: 0; font: 600 17px/1.3 Georgia, serif; color: #F3D59A; }
.kt-terem__hold-haz { margin: 4px 0 10px; color: #cfc8b8; }
.kt-terem__hold-tovabb { color: #F2C46D !important; font-weight: 600; text-decoration: none !important; }
.kt-terem__hold-zar { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #ECE5D6; cursor: pointer; }

/* A napló polca: a díszpolc legfelső sora */
.kt-naplopolc {
	position: absolute; z-index: 4;
	background: radial-gradient(ellipse 70% 90% at 72% 85%, rgba(255, 190, 110, .45), transparent 70%), linear-gradient(180deg, #3a2615, #4a321d);
	box-shadow: inset 0 0 0 0.45cqw #3a2716, inset 0 -0.9cqw 0 #6e4524;
	display: flex; align-items: flex-end; gap: 0.7cqw; padding: 0 1.3cqw 0.9cqw;
	box-sizing: border-box;
}
.kt-naplopolc--jobb { left: 64%; top: 19%; width: 17%; height: 13.2%; }
.kt-naplopolc--bal { left: 1.5%; top: 13%; width: 19%; height: 14.4%; }
.kt-naplokonyv {
	position: relative; flex: none; height: 82%; width: auto; aspect-ratio: 1 / 2.7;
	padding: 0; border: 0; cursor: pointer; text-decoration: none !important;
	border-radius: 2px 6px 6px 2px;
	background: linear-gradient(90deg, #4a1f1a 0 9%, #7a2e26 9% 100%);
	box-shadow: inset -0.25cqw 0 0 rgba(0, 0, 0, .25), 0 0.4cqw 0.8cqw rgba(0, 0, 0, .5);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35cqw; overflow: hidden;
	transition: transform .3s ease, filter .3s ease;
}
.kt-naplokonyv:hover, .kt-naplokonyv:focus-visible { transform: translateY(-6%) rotate(-3deg); filter: brightness(1.15) drop-shadow(0 0 0.8cqw rgba(255, 214, 140, .6)); outline: none; }
.kt-naplokonyv__cim { writing-mode: vertical-rl; transform: rotate(180deg); font: italic 600 0.68cqw/1 Georgia, serif; color: #F3D59A; letter-spacing: .06em; padding: 0.25cqw 0.1cqw; border-left: 1px solid rgba(243, 213, 154, .55); border-right: 1px solid rgba(243, 213, 154, .55); white-space: nowrap; }
.kt-naplokonyv__szij { position: absolute; right: -8%; top: 46%; width: 26%; height: 8%; background: #3a1712; border-radius: 0 3px 3px 0; }
.kt-naplokonyv__disz { order: -1; color: #F3D59A; font-size: 0.6cqw; line-height: 1; }
.kt-naplopolc__gyertya { flex: none; width: 0.55cqw; height: 34%; background: linear-gradient(#fff4d6, #e9d9b0); border-radius: 2px; position: relative; margin-left: auto; margin-right: 8%; }
.kt-naplopolc__gyertya::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 0.55cqw; height: 0.9cqw; transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6c2, #ffb347 60%, transparent 70%); animation: kt-lang 1.6s ease-in-out infinite alternate; }
@keyframes kt-lang { to { transform: translateX(-50%) scale(.85, 1.1); } }
.kt-terem__karzat { position: absolute; z-index: 3; left: 80.5%; top: 18%; width: 8.5%; height: 1.2cqw; background: #4a2f1b; box-shadow: 0 0.5cqw 0 #3a2716; }
.kt-terem__karzat::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 2.2cqw; background: repeating-linear-gradient(90deg, #B8893A 0 0.25cqw, transparent 0.25cqw 1.3cqw); border-top: 0.25cqw solid #B8893A; }

/* A kis fekete cica */
.kt-kiscica { position: absolute; z-index: 9; width: 4.2%; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 0 0.12cqw rgba(255, 214, 150, .85)) drop-shadow(0 0 0.5cqw rgba(255, 190, 110, .25)); }
.kt-kiscica .kt-cuki__rajz svg { display: block; width: 100%; height: auto; overflow: visible; }
.kt-kiscica:hover, .kt-kiscica:focus-visible { filter: drop-shadow(0 0 0.15cqw rgba(255, 214, 150, 1)) drop-shadow(0 0 10px rgba(255, 214, 140, .7)); outline: none; }
.kt-kiscica__farok { transform-origin: 40px 58px; animation: kt-farok 2.8s ease-in-out infinite; }
.kt-kiscica.is-csovan .kt-kiscica__farok { animation: kt-farok .35s ease-in-out 6; }
.kt-kiscica__szem { animation: kt-pislog 5s infinite; transform-origin: 30px 25px; }
@keyframes kt-pislog { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.kt-naplopolc .kt-kiscica { position: relative; width: 26%; flex: none; }
.kt-naplopolc .kt-kiscica--tetejen { position: absolute; bottom: 100%; left: 58%; width: 26%; margin-bottom: 0.55cqw; }
.kt-kiscica--padlon { left: 37%; bottom: 7%; }
.kt-kiscica--ablakban { left: 27%; bottom: 63.5%; width: 3.4%; }
.kt-kiscica--karzaton { left: 83%; top: calc(18% - 4.6cqw); }
@media (prefers-reduced-motion: reduce) { .kt-kiscica__farok, .kt-kiscica__szem, .kt-naplopolc__gyertya::before { animation: none; } }
/* Macskatál a padlón */
.kt-tal { position: absolute; z-index: 8; left: 44.5%; bottom: 3.2%; width: 4.4%; padding: 0; border: 0; background: none; cursor: pointer; }
.kt-tal .kt-cuki__rajz svg { display: block; width: 100%; height: auto; overflow: visible; }
.kt-tal:hover, .kt-tal:focus-visible { outline: none; filter: drop-shadow(0 0 0.6cqw rgba(255, 214, 140, .6)); }
.kt-tal .kt-cuki__felirat { white-space: nowrap; }
.kt-tal:hover .kt-cuki__felirat, .kt-tal:focus-visible .kt-cuki__felirat { opacity: 1; transform: translate(-50%, -12px); }
.kt-tal__kaja { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.kt-tal.is-tele .kt-tal__kaja { opacity: 1; transform: none; }
.kt-tal.is-zorog .kt-cuki__rajz { animation: kt-tal-zorog .12s ease-in-out 4 alternate; }
@keyframes kt-tal-zorog { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.is-eszik .kt-cuki__rajz { animation: kt-eszik .4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes kt-eszik { from { transform: rotate(0); } to { transform: rotate(4deg) translateY(3%); } }
/* Titkos kaja a szekrény alsó polcán, az ajtó mögött */
.kt-polc .kt-tal--fiok { position: absolute; z-index: 1; left: 50%; bottom: calc(var(--kt-deszka, 18px) + 2px); width: 26%; transform: translateX(-50%); pointer-events: none; cursor: inherit; }
.kt-polc .kt-tal--fiok .kt-cuki__rajz { transform-origin: 50% 100%; }
/* Amit a cicák feldöntöttek */
.kt-cuki--foldgomb .kt-cuki__rajz, .kt-cuki--tavcso .kt-cuki__rajz, .kt-cuki--olvasopult .kt-cuki__rajz { transition: transform .6s cubic-bezier(.5, -.3, .6, 1.4); }
.kt-cuki.is-feldolt .kt-cuki__felirat { display: none; }
.kt-cuki--foldgomb.is-feldolt .kt-cuki__rajz { transform-origin: 50% 100%; transform: translate(15%, 6%) rotate(88deg); }
.kt-cuki--tavcso.is-feldolt .kt-cuki__rajz { transform-origin: 30% 100%; transform: translateY(18%) rotate(78deg); }
.kt-cuki--olvasopult.is-feldolt .kt-cuki__rajz { transform-origin: 50% 100%; transform: translate(10%, 6%) rotate(80deg); }
.kt-koszi { position: absolute; z-index: 30; transform: translateX(-50%); margin: 0; padding: 6px 6px 4px; background: #fffaf0; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); text-align: center; cursor: pointer; animation: kt-koszi-be .45s ease-out; transition: opacity .5s ease; }
.kt-koszi img { display: block; width: min(150px, 18cqw); height: auto; border-radius: 4px; }
.kt-koszi figcaption { margin-top: 4px; font: 600 14px/1.2 Georgia, serif; color: #5a3418; }
.kt-koszi.is-megy { opacity: 0; }
@keyframes kt-koszi-be { from { opacity: 0; transform: translate(-50%, 12px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }
/* Alom */
.kt-alom { position: absolute; z-index: 7; left: 87.6%; bottom: 1.6%; width: 6.2%; padding: 0; border: 0; background: none; cursor: pointer; }
.kt-alom svg, .kt-cicaajto svg { display: block; width: 100%; height: auto; overflow: visible; }
.kt-alom__illat, .kt-alom__kupac { opacity: 0; transition: opacity .6s ease; }
.kt-alom.is-illatos .kt-alom__kupac { opacity: 1; }
.kt-alom.is-illatos .kt-alom__illat { opacity: .85; animation: kt-illat 2.4s ease-in-out infinite; }
@keyframes kt-illat { 0% { transform: translateY(2px); opacity: .2; } 50% { opacity: .9; } 100% { transform: translateY(-6px); opacity: .1; } }
.kt-alom:hover, .kt-alom:focus-visible, .kt-cicaajto:hover, .kt-cicaajto:focus-visible { outline: none; filter: drop-shadow(0 0 0.6cqw rgba(255, 214, 140, .55)); }
/* Cicaajtó a csigalépcső tetején, ki a tetőre */
.kt-cicaajto { position: absolute; z-index: 7; left: 91%; top: 33%; width: 3.6%; padding: 0; border: 0; background: none; cursor: pointer; }
.kt-cicaajto:hover .kt-cuki__felirat, .kt-cicaajto:focus-visible .kt-cuki__felirat { opacity: 1; transform: translate(-50%, -12px); }
.kt-cicaajto .kt-cuki__felirat { white-space: nowrap; }
.kt-cicaajto__lap { transform-origin: 50% 8px; transition: transform .35s ease; }
.kt-cicaajto.is-nyitva .kt-cicaajto__lap { transform: scaleY(.15); }
.kt-cicaajto.is-kint::after { content: "🌙"; position: absolute; left: 50%; top: -1.6cqw; transform: translateX(-50%); font-size: 1.4cqw; }
.is-kiment { opacity: 0 !important; pointer-events: none; transition: opacity .25s ease; }
@media (prefers-reduced-motion: reduce) { .is-eszik .kt-cuki__rajz, .kt-tal.is-zorog .kt-cuki__rajz, .kt-koszi, .kt-alom.is-illatos .kt-alom__illat { animation: none; } .kt-cuki__rajz { transition: none !important; } }
@media (max-width: 720px) {
	.kt-naplopolc, .kt-terem__karzat { display: none; }
	.kt-kiscica, .kt-tal, .kt-alom, .kt-cicaajto, .kt-cuki--lepcso { display: none; }
	.kt-terem__hold { position: fixed; left: 50% !important; top: 50%; transform: translate(-50%, -50%); }
}
.kt-terem__hold-haz a { color: #F3D59A !important; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(243,213,154,.4); }

/* Saját kép a cicának (pl. a saját cicád rajza) */
.kt-cuki--macska-kep { width: 40%; left: 62%; bottom: calc(100% - 1.2cqw) !important; }
.kt-cuki--macska-kep .kt-cuki__rajz img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0.4cqw 0.5cqw rgba(0, 0, 0, .45)); }
.kt-cuki--macska-kep::after { left: 22%; top: -10%; }
.kt-cuki--macska-kep:not(.is-dorombol)::after { content: none; }
.kt-cuki--macska-kep .kt-cuki__rajz { position: relative; }
.kt-cuki--macska-kep.van-ket-kep .kt-macska__kep--ebren { position: absolute; left: 0; bottom: 0; opacity: 0; transition: opacity .35s ease; }
.kt-cuki--macska-kep.van-ket-kep .kt-macska__kep--alvo { transition: opacity .35s ease; }
.kt-cuki--macska-kep.van-ket-kep.is-ebren .kt-macska__kep--ebren { opacity: 1; }
.kt-cuki--macska-kep.van-ket-kep.is-ebren .kt-macska__kep--alvo { opacity: 0; }
.kt-cuki--macska-kep.van-alvo:not(.is-dorombol)::after { content: "z z z"; }

/* 1.6.0 – a cica képei: fekvők szélességre, ülők/állók magasságra igazítva, középre */
.kt-cuki--macska-kep { width: auto; left: 60%; }
.kt-cuki--macska-kep .kt-cuki__rajz { display: flex; justify-content: center; align-items: flex-end; }
.kt-cuki--macska-kep .kt-macska__kep { display: block; max-width: none; }
.kt-cuki--macska-kep .kt-macska__kep.is-fekvo { width: calc(11.5cqw * var(--kt-kep-arany, 1) * var(--kt-macska-meret, 1)); height: auto; }
.kt-cuki--macska-kep .kt-macska__kep.is-allo { height: calc(7.5cqw * var(--kt-kep-arany, 1) * var(--kt-macska-meret, 1)); width: auto; }
/* A képes cica ne ugráljon, ha rajta az egér (a felemelés miatt ki-be ugrott alóla) – csak finoman fényljen. */
.kt-cuki--macska-kep:hover, .kt-cuki--macska-kep:focus-visible { transform: none; }
.kt-cuki--macska-kep .kt-macska__kep { transition: opacity .35s ease, filter .25s ease; }
.kt-cuki--macska-kep:hover .kt-macska__kep { filter: drop-shadow(0 0 0.8cqw rgba(255, 214, 140, .45)); }
.kt-cuki--macska-kep.van-ket-kep .kt-macska__kep--ebren { left: 50%; transform: translateX(-50%); }

/* ================= 1.8.0 – a nyitva felejtett verseskötet az olvasópulton ================= */
.kt-cuki--olvasopult { left: 12.4%; bottom: 4.5%; width: 9%; z-index: 7; }
.kt-cuki--olvasopult .kt-pult__lap { transform-origin: 60px 58px; transition: transform .6s cubic-bezier(.3, .8, .3, 1.2); }
.kt-cuki--olvasopult:hover .kt-pult__lap, .kt-cuki--olvasopult:focus-visible .kt-pult__lap { transform: rotate(-14deg) skewX(-6deg); }
.kt-cuki--olvasopult::after { content: ""; position: absolute; left: 10%; right: 10%; top: 18%; height: 30%; background: radial-gradient(ellipse, rgba(255, 236, 190, .35), transparent 70%); pointer-events: none; }
.kt-terem__vers {
	position: absolute; z-index: 33; left: 50%; top: 7%; width: min(440px, 84%); box-sizing: border-box;
	transform: translateX(-50%) rotate(-.6deg);
	padding: 30px 34px 22px; border-radius: 4px 10px 10px 4px;
	background: radial-gradient(ellipse at 30% 20%, #fffaf0, #f4e8cf 70%, #ead9b4);
	box-shadow: inset 14px 0 18px -14px rgba(90, 60, 30, .45), 0 24px 50px rgba(0, 0, 0, .55);
	color: #2a2116; text-align: center;
	font: 400 19px/1.65 "Gentium Book Plus", Georgia, serif;
	animation: kt-cetli-ki .55s cubic-bezier(.2, .9, .3, 1.15) both;
}
.kt-terem__vers { max-height: 86%; overflow-y: auto; scrollbar-width: thin; }
.kt-terem__vers[hidden] { display: none; }
.kt-terem__vers::before { content: ""; position: absolute; left: 50%; top: -8px; width: 70px; height: 18px; transform: translateX(-50%) rotate(2deg); background: rgba(166, 61, 42, .85); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); }
.kt-terem__vers-felirat { margin: 0 0 10px; font: 600 11px/1.2 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8a6a3a; }
.kt-terem__vers-cim { margin: 0 0 12px; font: italic 600 22px/1.25 "Cormorant Garamond", Georgia, serif; color: #6e3b1e; }
.kt-terem__vers-film { margin: -6px -10px 14px; border-radius: 6px; overflow: hidden; background: #0b0906; box-shadow: inset 0 0 0 1px rgba(184, 137, 58, .35), 0 6px 16px rgba(60, 35, 15, .25); }
.kt-terem__vers-film video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kt-terem__vers-szak { margin: 0 auto 16px; font-style: italic; white-space: normal; }
.kt-terem__vers-szak--ures { color: #8a7a60; }
.kt-terem__vers-forras { margin: -10px 0 14px; font-size: .82em; color: #8a7a60; letter-spacing: .02em; }
.kt-terem__vers-asztro { position: relative; margin: 0 0 14px; padding: .6em .8em .6em 2em; border-radius: 8px; background: rgba(138, 74, 30, .07); text-align: left; font-size: .72em; line-height: 1.5; color: #4a3b28; }
.kt-terem__vers-asztro p { margin: 0 0 .5em; } .kt-terem__vers-asztro p:last-child { margin-bottom: 0; }
.kt-terem__vers-asztro-jel { position: absolute; left: .75em; top: .6em; color: #b8862e; }
.kt-terem__vers-hallgat { display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 999px; background: #8A4A1E; color: #fff8ea !important; font: 600 13px/1.3 system-ui, sans-serif; text-decoration: none !important; }
.kt-terem__vers-hallgat:hover, .kt-terem__vers-hallgat:focus-visible { background: #6f3a16; }
.kt-terem__vers-hallgat small { opacity: .75; font-weight: 400; }
.kt-terem__vers-tovabb { display: inline-block; margin-bottom: 8px; color: #8A4A1E !important; font: 600 14px/1.3 system-ui, sans-serif; text-decoration: none !important; border-bottom: 1px solid rgba(138, 74, 30, .35); }
.kt-terem__vers-holnap { margin: 6px 0 0; font: italic 13px/1.3 Georgia, serif; color: #9a8662; }
.kt-terem__vers-zar { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(90, 60, 30, .1); color: #5a3a22; cursor: pointer; }
@media (max-width: 720px) { .kt-terem__vers { position: fixed; top: 50%; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { .kt-terem__vers { animation: none; } }

/* ================= 1.9.0 – élő festmény a falon ================= */
.kt-cuki--festmeny { left: 36.4%; top: 29%; bottom: auto !important; width: 10.5%; z-index: 4; }
.kt-festmeny__keret {
	display: block; padding: 7%; border-radius: 3px;
	background: linear-gradient(135deg, #f2d08a, #a8741f 35%, #f6dc9c 55%, #8a5a1a 80%, #d9a94f);
	box-shadow: 0 0.6cqw 1.2cqw rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 240, 200, .5);
}
.kt-festmeny__vaszon { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1410; box-shadow: inset 0 0 0.6cqw rgba(0, 0, 0, .8); }
.kt-festmeny__vaszon video { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) sepia(.08); transition: filter .4s ease; }
.kt-cuki--festmeny:hover .kt-festmeny__vaszon video { filter: none; }
.kt-festmeny__vaszon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .14), transparent 40%); pointer-events: none; }
.kt-festmeny__vaszon--zart { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: radial-gradient(circle, #2b2148, #120d1e); color: #F3D59A; font: 600 0.9cqw/1 system-ui, sans-serif; }
.kt-festmeny__lakat { font-size: 1.6cqw; line-height: 1; }
.kt-festmeny-ablak { position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 4vw, 48px); background: radial-gradient(ellipse at 50% 40%, rgba(60, 40, 20, .85), rgba(10, 7, 4, .95)); }
.kt-festmeny-ablak[hidden] { display: none; }
.kt-festmeny-ablak__keret { position: relative; width: min(1100px, 100%); padding: clamp(10px, 1.6vw, 22px); border-radius: 6px; background: linear-gradient(135deg, #f2d08a, #a8741f 35%, #f6dc9c 55%, #8a5a1a 80%, #d9a94f); box-shadow: 0 40px 90px rgba(0, 0, 0, .7); animation: kt-nagy-ki .45s cubic-bezier(.2, .9, .3, 1.1) both; }
.kt-festmeny-ablak__film { display: block; width: 100%; max-height: 74vh; background: #000; }
.kt-festmeny-ablak__cim { margin: 10px 4px 0; color: #2a1a0c; font: 600 16px/1.3 Georgia, serif; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kt-festmeny-ablak__cim a { color: #4a2a10 !important; font: 600 14px/1.3 system-ui, sans-serif; }
.kt-festmeny-ablak__zar { position: absolute; top: -16px; right: -16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #2a1a0c; color: #F3D59A; font-size: 18px; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
@media (max-width: 720px) { .kt-cuki--festmeny { top: auto; } .kt-festmeny__keret { width: 100%; } .kt-festmeny__lakat { font-size: 28px; } .kt-festmeny__vaszon--zart { font-size: 13px; } }

/* --- Az ablak mögött: véletlen időjárás (csendes mozgás) --- */
.kt-idojaras { display: none; }
.kt-ablak--csillagos .kt-idojaras--csillag, .kt-ablak--felhos .kt-idojaras--csillag, .kt-ablak--szeles .kt-idojaras--csillag { display: inline; }
.kt-ablak--felhos .kt-idojaras--felho, .kt-ablak--szeles .kt-idojaras--felho, .kt-ablak--esos .kt-idojaras--felho, .kt-ablak--havas .kt-idojaras--felho { display: inline; }
.kt-ablak--havas .kt-idojaras--ho, .kt-ablak--esos .kt-idojaras--eso, .kt-ablak--szeles .kt-idojaras--level { display: inline; }
.kt-idojaras--csillag circle { animation: kt-csillag-pislak 5s ease-in-out infinite; }
@keyframes kt-csillag-pislak { 0%, 100% { opacity: .95; } 50% { opacity: .35; } }
.kt-felho { animation: kt-felho-usz 80s linear infinite; }
@keyframes kt-felho-usz { from { transform: translateX(-30px); } to { transform: translateX(150px); } }
.kt-ablak--szeles .kt-felho { animation-duration: 28s !important; }
.kt-ablak--esos .kt-idojaras--felho, .kt-ablak--havas .kt-idojaras--felho { fill: #46506a; }
.kt-ablak--esos .kt-hold, .kt-ablak--esos .kt-hold-folt { opacity: .35; }
.kt-ablak--havas .kt-hold, .kt-ablak--havas .kt-hold-folt { opacity: .6; }
.kt-ablak--esos .kt-ablak__eg { fill: #1b2436; }
.kt-ablak--havas .kt-ablak__eg { fill: #222c46; }
.kt-pehely { animation: kt-hull 10s linear infinite; }
@keyframes kt-hull { from { transform: translate(0, 0); } 50% { transform: translate(var(--kt-sodr, 4px), 90px); } to { transform: translate(0, 180px); } }
.kt-csepp { animation: kt-esik 1.6s linear infinite; }
@keyframes kt-esik { from { transform: translate(0, 0); } to { transform: translate(var(--kt-dx, -6px), 180px); } }
.kt-level { animation: kt-repul 7s linear infinite; }
@keyframes kt-repul { from { transform: translate(-20px, var(--kt-y)) rotate(0); } 50% { transform: translate(60px, calc(var(--kt-y) - 14px)) rotate(200deg); } to { transform: translate(140px, var(--kt-y)) rotate(420deg); } }
@media (prefers-reduced-motion: reduce) { .kt-idojaras * { animation: none !important; } }

/* Beírt linkekből gomb */
.kt-vers-link { color: #8A4A1E !important; text-decoration: underline; text-decoration-color: rgba(138, 74, 30, .4); word-break: break-word; }
.kt-vers-link--zene { display: inline-block; padding: 4px 13px; border-radius: 999px; background: #8A4A1E; color: #fff8ea !important; font: 600 12.5px/1.3 system-ui, sans-serif; text-decoration: none !important; }
.kt-vers-link--zene:hover, .kt-vers-link--zene:focus-visible { background: #6f3a16; }
.kt-vers-link--zene small { opacity: .75; font-weight: 400; }

/* Saját kép, hang vagy mozgókép a versszaknál */
.kt-vers-media { margin: 0 0 14px; }
.kt-vers-media img, .kt-vers-media video { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; box-shadow: 0 4px 12px rgba(60, 35, 15, .2); }
.kt-vers-media--kep img { max-height: 220px; width: auto; }
.kt-vers-media audio { display: block; width: 100%; height: 36px; }


/* Gramofon: a mai versszak és a hozzá tartozó zene */
.kt-cuki--gramofon { left: 72.2%; bottom: 1%; width: 10.2%; z-index: 8; }
.kt-cuki--gramofon .kt-cuki__rajz svg { overflow: visible; }
.kt-gramofon__lemez { transform-box: fill-box; transform-origin: center; }
.kt-cuki--gramofon.is-szol .kt-gramofon__lemez { animation: kt-forog 1.8s linear infinite; }
@keyframes kt-forog { to { transform: rotate(360deg); } }
.kt-gramofon__kar { transform-box: fill-box; transform-origin: 100% 20%; transform: rotate(-18deg); transition: transform .7s ease; }
.kt-cuki--gramofon.is-szol .kt-gramofon__kar { transform: none; }
.kt-gramofon__hangjegyek text { opacity: 0; transform-box: fill-box; }
.kt-cuki--gramofon.is-szol .kt-gramofon__hangjegyek text { animation: kt-hangjegy 2.6s ease-out infinite; }
.kt-cuki--gramofon.is-szol .kt-gramofon__hangjegyek text:nth-child(2) { animation-delay: .9s; }
.kt-cuki--gramofon.is-szol .kt-gramofon__hangjegyek text:nth-child(3) { animation-delay: 1.7s; }
@keyframes kt-hangjegy { 0% { opacity: 0; transform: translate(0, 14px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-10px, -18px); } }
.kt-terem__vers-zene { margin: 0 0 8px; }
.kt-terem__vers-zene iframe { display: block; width: 100%; border: 0; border-radius: 12px; background: #1f1a14; }
.kt-terem__vers-zene--spotify iframe { height: 80px; }
.kt-terem__vers-zene--youtube iframe { aspect-ratio: 16 / 9; height: auto; }
.kt-terem__vers-hallgat--kicsi { padding: 0; background: none; color: #8A4A1E !important; font: 600 12px/1.3 system-ui, sans-serif; text-decoration: underline !important; text-decoration-color: rgba(138, 74, 30, .4) !important; }
.kt-terem__vers-hallgat--kicsi:hover { background: none; }
@media (prefers-reduced-motion: reduce) { .kt-cuki--gramofon.is-szol .kt-gramofon__lemez, .kt-cuki--gramofon.is-szol .kt-gramofon__hangjegyek text { animation: none; } }
